Created
October 19, 2011 06:00
-
-
Save masaakif/1297571 to your computer and use it in GitHub Desktop.
My Emacs init file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Skip splash screen | |
| (setq inhibit-startup-message t) | |
| ;; Set Menubar and Toolbar hidden | |
| (menu-bar-mode -1) | |
| (tool-bar-mode -1) | |
| ;; Set window style | |
| (setq initial-frame-alist | |
| (append | |
| '((top . 0) | |
| (left . 0) | |
| (width . 312) | |
| (height . 84)) | |
| initial-frame-alist)) | |
| (setq frame-title-format (format "emacs@%s : %%f" (system-name))) | |
| ;; Set font | |
| (set-face-attribute 'default nil | |
| :family "MS ゴシック" | |
| :height 90) | |
| (set-fontset-font "fontset-default" | |
| 'japanese-jisx0208 | |
| '("MS ゴシック" . "jisx0208-sjis")) | |
| ;; Highlight matched parentheses | |
| (show-paren-mode t) | |
| ;; Less pain to enter Yes or No | |
| (fset 'yes-or-no-p 'y-or-n-p) | |
| ;; Drag and drop file to open in new buffer | |
| (define-key global-map [ns-drag-file] 'ns-find-file) | |
| ;; Kill line include \r\n | |
| (setq kill-whole-line t) | |
| ;; iswitch enabeld | |
| (setq iswitchb-mode t) | |
| ;; Line/Column number | |
| (setq line-number-mode t) | |
| (setq column-number-mode t) | |
| ;; Recent files | |
| (setq recentf-mode t) | |
| ;; ======= Key Binding ======= | |
| ;; Copy-to/Paste-from Clipboard | |
| (global-set-key "\C-w" 'clipboard-kill-ring-save) | |
| (global-set-key "\M-w" 'clipboard-kill-region) | |
| (global-set-key (kbd "C-c y") 'clipboard-yank) | |
| (global-set-key "\C-x:" 'goto-line) | |
| (global-set-key "\C-t" 'other-window) ;; original = transpose-chars | |
| (global-set-key "\C-h" 'delete-backward-char) ;; original = help-command | |
| (global-set-key "\C-r" 'isearch-backward-regexp) ;; original = isearch-backword | |
| (global-set-key "\C-s" 'isearch-forward-regexp) ;; original = isearch-forward | |
| (global-set-key (kbd "C-x 8 i") 'edit-initel) | |
| ;; ======= My Functions ======= | |
| ;; Edit init.el | |
| (defun edit-initel () | |
| "Edit init.el" | |
| (interactive ()) | |
| (find-file "~/.emacs.d/init.el")) | |
| ;; ======= External Modules ======= | |
| ;; Load scala-mode | |
| (add-to-list 'load-path "~/.emacs.d/scala-mode") | |
| (require 'scala-mode-auto) | |
| ;; Show line number mode | |
| (require 'linum) | |
| (global-linum-mode t) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment