diff options
Diffstat (limited to '.emacs')
| -rw-r--r-- | .emacs | 12 |
1 files changed, 5 insertions, 7 deletions
| @@ -41,7 +41,7 @@ | |||
| 41 | '(font-lock-variable-name-face ((nil (:foreground "sienna")))) | 41 | '(font-lock-variable-name-face ((nil (:foreground "sienna")))) |
| 42 | '(font-lock-warning-face ((nil (:foreground "Red1")))) | 42 | '(font-lock-warning-face ((nil (:foreground "Red1")))) |
| 43 | '(warning ((nil (:foreground "DarkOrange")))) | 43 | '(warning ((nil (:foreground "DarkOrange")))) |
| 44 | ) | 44 | ) |
| 45 | 45 | ||
| 46 | ;;(setq require-final-newline t) | 46 | ;;(setq require-final-newline t) |
| 47 | (setq require-final-newline nil) | 47 | (setq require-final-newline nil) |
| @@ -95,12 +95,10 @@ | |||
| 95 | 95 | ||
| 96 | ;; Python | 96 | ;; Python |
| 97 | (require 'whitespace) | 97 | (require 'whitespace) |
| 98 | (add-hook 'python-mode-hook | 98 | (setq whitespace-line-column 79) ;; limit line length |
| 99 | (lambda () | 99 | (setq whitespace-style '(face lines-tail)) |
| 100 | (progn | 100 | (add-hook 'prog-mode-hook 'whitespace-mode) |
| 101 | (setq whitespace-line-column 79) | 101 | ;;(add-hook 'python-mode-hook 'whitespace-mode) ;; doesn't work in 29 |
| 102 | (setq whitespace-style '(face empty tabs lines-tail trailing)) | ||
| 103 | (whitespace-mode)))) | ||
| 104 | 102 | ||
| 105 | ;; Custom plugins | 103 | ;; Custom plugins |
| 106 | (add-to-list 'load-path "~/.emacs.d/lisp/") | 104 | (add-to-list 'load-path "~/.emacs.d/lisp/") |
