diff options
Diffstat (limited to '.emacs')
| -rw-r--r-- | .emacs | 10 |
1 files changed, 10 insertions, 0 deletions
| @@ -55,6 +55,7 @@ | |||
| 55 | (set-keyboard-coding-system 'utf-8) | 55 | (set-keyboard-coding-system 'utf-8) |
| 56 | 56 | ||
| 57 | (put 'downcase-region 'disabled nil) | 57 | (put 'downcase-region 'disabled nil) |
| 58 | (kill-buffer "*scratch*") | ||
| 58 | 59 | ||
| 59 | 60 | ||
| 60 | ;; Programming section | 61 | ;; Programming section |
| @@ -93,6 +94,15 @@ | |||
| 93 | (require 'yaml-mode) | 94 | (require 'yaml-mode) |
| 94 | (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) | 95 | (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) |
| 95 | 96 | ||
| 97 | ;; Python | ||
| 98 | (require 'whitespace) | ||
| 99 | (add-hook 'python-mode-hook | ||
| 100 | (lambda () | ||
| 101 | (progn | ||
| 102 | (setq whitespace-line-column 80) | ||
| 103 | (setq whitespace-style '(face empty tabs lines-tail trailing)) | ||
| 104 | (whitespace-mode)))) | ||
| 105 | |||
| 96 | ;; yasnippet | 106 | ;; yasnippet |
| 97 | (require 'yasnippet) | 107 | (require 'yasnippet) |
| 98 | (yas-global-mode 1) | 108 | (yas-global-mode 1) |
