diff options
| author | Simeon Simeonov | 2015-08-28 11:10:13 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2015-08-28 11:10:13 +0200 |
| commit | 3ec6ac6a8d888043cc12dfe6f77adcd0cfc1b086 (patch) | |
| tree | c2382110856abc0cae77f8360ea2b0d8962d07f9 /.emacs | |
| parent | eeeaae3a34ca050c9ea30aa3950dc91db70b9b1a (diff) | |
Upgrade all, add yaml, few snippet fixes
Diffstat (limited to '.emacs')
| -rw-r--r-- | .emacs | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -48,7 +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 | 53 | ||
| 53 | ;; Default coding style | 54 | ;; Default coding style |
| 54 | (setq c-default-style "bsd") | 55 | (setq c-default-style "bsd") |
| @@ -64,6 +65,10 @@ | |||
| 64 | (autoload 'php-mode "php-mode" "Mode for editing PHP source files") | 65 | (autoload 'php-mode "php-mode" "Mode for editing PHP source files") |
| 65 | (add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode)) | 66 | (add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode)) |
| 66 | 67 | ||
| 68 | ;; YAML | ||
| 69 | (require 'yaml-mode) | ||
| 70 | (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) | ||
| 71 | |||
| 67 | ;; yasnippet | 72 | ;; yasnippet |
| 68 | (require 'yasnippet) | 73 | (require 'yasnippet) |
| 69 | (yas-global-mode 1) | 74 | (yas-global-mode 1) |
