diff options
Diffstat (limited to '.emacs')
| -rw-r--r-- | .emacs | 11 |
1 files changed, 7 insertions, 4 deletions
| @@ -48,8 +48,8 @@ | |||
| 48 | ;; Programming section | 48 | ;; Programming section |
| 49 | 49 | ||
| 50 | ;; Indentation | 50 | ;; Indentation |
| 51 | ;;(setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil) | 51 | (setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil) |
| 52 | (setq-default c-basic-offset 4 tab-width 4) | 52 | ;;(setq-default c-basic-offset 4 tab-width 4) |
| 53 | 53 | ||
| 54 | ;; Default coding style | 54 | ;; Default coding style |
| 55 | (setq c-default-style "bsd") | 55 | (setq c-default-style "bsd") |
| @@ -57,13 +57,16 @@ | |||
| 57 | ;; Don't attempt to guess the Python-indent | 57 | ;; Don't attempt to guess the Python-indent |
| 58 | (setq python-indent-guess-indent-offset nil) | 58 | (setq python-indent-guess-indent-offset nil) |
| 59 | 59 | ||
| 60 | ;; Enable which-function-mode for C, C++ and Python | ||
| 61 | (setq which-func-modes '(python-mode c-mode c++-mode)) | ||
| 62 | (which-function-mode t) | ||
| 60 | 63 | ||
| 61 | ;; Custom plugins | 64 | ;; Custom plugins |
| 62 | (add-to-list 'load-path "~/.emacs.d/lisp/") | 65 | (add-to-list 'load-path "~/.emacs.d/lisp/") |
| 63 | 66 | ||
| 64 | ;;PHP | 67 | ;;PHP |
| 65 | (autoload 'php-mode "php-mode" "Mode for editing PHP source files") | 68 | ;; (autoload 'php-mode "php-mode" "Mode for editing PHP source files") |
| 66 | (add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode)) | 69 | ;; (add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode)) |
| 67 | 70 | ||
| 68 | ;; YAML | 71 | ;; YAML |
| 69 | (require 'yaml-mode) | 72 | (require 'yaml-mode) |
