Added web-mode and made it the default for lots of editing
Getty Ritter
8 years ago
46 | 46 | |
47 | 47 | (use-package org |
48 | 48 | :ensure t) |
49 | ||
50 | ||
49 | 51 | |
52 | ||
53 | ;; web-mode | |
54 | (use-package web-mode | |
55 | :ensure t | |
56 | :init (progn | |
57 | (mapcar (lambda (extension) | |
58 | (add-to-list 'auto-mode-alist | |
59 | `(,extension . web-mode))) | |
60 | '("\\.html?\\'" | |
61 | "\\.tpl\\.php\\'" | |
62 | "\\.[agj]sp\\'" | |
63 | "\\.as[cp]x\\'" | |
64 | "\\.erb\\'" | |
65 | "\\.mustache\\'" | |
66 | "\\.djhtml\\'")) | |
67 | (setq web-mode-markup-indent-offset 2) | |
68 | (setq web-mode-css-indent-offset 2) | |
69 | (setq web-mode-code-indent-offset 2) | |
70 | (setq web-mode-attr-indent-offset 2))) | |
50 | 71 | |
51 | 72 |