diff options
Diffstat (limited to '.emacs')
| -rw-r--r-- | .emacs | 20 |
1 files changed, 20 insertions, 0 deletions
| @@ -1,6 +1,13 @@ | |||
| 1 | ;; Set up the keyboard so the delete key on both the regular keyboard | 1 | ;; Set up the keyboard so the delete key on both the regular keyboard |
| 2 | ;; and the keypad delete the character under the cursor and to the right | 2 | ;; and the keypad delete the character under the cursor and to the right |
| 3 | ;; under X, instead of the default, backspace behavior. | 3 | ;; under X, instead of the default, backspace behavior. |
| 4 | |||
| 5 | ;; Added by Package.el. This must come before configurations of | ||
| 6 | ;; installed packages. Don't delete this line. If you don't want it, | ||
| 7 | ;; just comment it out by adding a semicolon to the start of the line. | ||
| 8 | ;; You may delete these explanatory comments. | ||
| 9 | ;;(package-initialize) | ||
| 10 | |||
| 4 | (global-set-key [delete] 'delete-char) | 11 | (global-set-key [delete] 'delete-char) |
| 5 | (global-set-key [kp-delete] 'delete-char) | 12 | (global-set-key [kp-delete] 'delete-char) |
| 6 | 13 | ||
| @@ -86,11 +93,24 @@ | |||
| 86 | ;;(autoload 'php-mode "php-mode" "Mode for editing PHP source files") | 93 | ;;(autoload 'php-mode "php-mode" "Mode for editing PHP source files") |
| 87 | ;;(add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode)) | 94 | ;;(add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode)) |
| 88 | 95 | ||
| 96 | |||
| 89 | ;; Lua | 97 | ;; Lua |
| 90 | (autoload 'lua-mode "lua-mode" "Lua editing mode." t) | 98 | (autoload 'lua-mode "lua-mode" "Lua editing mode." t) |
| 91 | (add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode)) | 99 | (add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode)) |
| 92 | ;;(add-to-list 'interpreter-mode-alist '("lua" . lua-mode)) | 100 | ;;(add-to-list 'interpreter-mode-alist '("lua" . lua-mode)) |
| 93 | 101 | ||
| 102 | |||
| 103 | ;; Markdown | ||
| 104 | (autoload 'markdown-mode "markdown-mode" | ||
| 105 | "Major mode for editing Markdown files" t) | ||
| 106 | (add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode)) | ||
| 107 | (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) | ||
| 108 | |||
| 109 | (autoload 'gfm-mode "markdown-mode" | ||
| 110 | "Major mode for editing GitHub Flavored Markdown files" t) | ||
| 111 | (add-to-list 'auto-mode-alist '("README\\.md\\'" . gfm-mode)) | ||
| 112 | |||
| 113 | |||
| 94 | ;; YAML | 114 | ;; YAML |
| 95 | (require 'yaml-mode) | 115 | (require 'yaml-mode) |
| 96 | (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) | 116 | (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) |
