~willvaughn/.emacs.d

5e1fdc9ba5b076885d4af153b6527667131c7cf6 — William Vaughn 5 months ago 525007c
separate web-mode and css-mode configs into wv-web
3 files changed, 20 insertions(+), 7 deletions(-)

M init.el
M lisp/wv-ui.el
A lisp/wv-web.el
M init.el => init.el +1 -7
@@ 18,16 18,10 @@
(require 'wv-email)
(require 'wv-irc)
(require 'wv-rss)
(require 'wv-web)

;; Nomad configuration, in search of a permanent home
(use-package markdown-mode)
(use-package tree-sitter)
(use-package tree-sitter-langs)
(use-package web-mode
  :config
  (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
  (setq web-mode-engines-alist '(("django" . "\\.html\\'"))
        web-mode-markup-indent-offset 2))

;; Without this I was getting nagged for every load of an org file
(advice-add 'risky-local-variable-p :override #'ignore)

M lisp/wv-ui.el => lisp/wv-ui.el +3 -0
@@ 68,4 68,7 @@
         ("C-c h" . eldoc)
         ("C-c k" . eglot-shutdown)))

(use-package tree-sitter)
(use-package tree-sitter-langs)

(provide 'wv-ui)

A lisp/wv-web.el => lisp/wv-web.el +16 -0
@@ 0,0 1,16 @@
;;; lisp/wv-web.el -*- lexical-binding: t; -*-

(use-package web-mode
  :config
  (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
  (setq web-mode-engines-alist '(("django" . "\\.html\\'"))
        web-mode-markup-indent-offset 2
        web-mode-code-indent-offset 2
        web-mode-css-indent-offset 2))

(use-package css-mode
  :config
  (setq css-indent-offset 2))


(provide 'wv-web)