gdritter repos dotfiles / 2066c79
Added web-mode and made it the default for lots of editing Getty Ritter 8 years ago
1 changed file(s) with 21 addition(s) and 0 deletion(s). Collapse all Expand all
4646
4747 (use-package org
4848 :ensure t)
49
50
4951
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)))
5071
5172