commit 1e8099c847f623667fac0ee11055bab11a6c140c parent 8ae1bfae3e9c0afcff1b363e415c7073cbf13e0e Author: dwrz <dwrz@dwrz.net> Date: Wed, 28 Jun 2023 00:47:08 +0000 Reformat emacs init Diffstat:
M | emacs/init.el | | | 29 | +++++++++++++++-------------- |
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/emacs/init.el b/emacs/init.el @@ -231,7 +231,7 @@ (:name "all mail" :query "*" :key "a") (:name "todo" :query "tag:todo" :key "t"))) ;; Keybindings - (define-key notmuch-search-mode-map "D" + (define-key notmuch-search-mode-map "D" (lambda () "mark message as deleted" (interactive) @@ -449,13 +449,14 @@ 'visual-fill-column-split-window-sensibly)) (with-eval-after-load 'web-mode - (setq web-mode-code-indent-offset 2 - web-mode-css-indent-offset 2 - web-mode-indent-style 2 - web-mode-markup-indent-offset 2) - (add-hook 'web-mode-hook 'electric-pair-mode) - (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode)) - (add-to-list 'auto-mode-alist '("\\.gohtml\\'" . web-mode))) + (setq web-mode-code-indent-offset 2 + web-mode-css-indent-offset 2 + web-mode-indent-style 2 + web-mode-markup-indent-offset 2) + (add-hook 'web-mode-hook 'electric-pair-mode)) + +(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode)) +(add-to-list 'auto-mode-alist '("\\.gohtml\\'" . web-mode)) (with-eval-after-load 'window (setq split-height-threshold nil @@ -463,17 +464,17 @@ ;; CUSTOMIZE (customize-set-variable 'face-font-family-alternatives - '(("hans" "adobe-source-han-sans-cn-font"))) + '(("hans" "adobe-source-han-sans-cn-font"))) (customize-set-variable 'mouse-wheel-scroll-amount '(1 ((shift) .1))) ;; HOOKS (add-hook 'after-init-hook 'doom-modeline-mode) (add-hook 'after-init-hook - '(lambda () - (setq base16-theme-256-color-source 'colors) - (load-theme 'base16-tomorrow t) - (set-face-attribute 'fringe t :background "#ffffff") - (setq base16-distinct-fringe-background nil) + '(lambda () + (setq base16-theme-256-color-source 'colors) + (load-theme 'base16-tomorrow t) + (set-face-attribute 'fringe t :background "#ffffff") + (setq base16-distinct-fringe-background nil) (when (fboundp 'menu-bar-mode)(menu-bar-mode -1)) (when (fboundp 'scroll-bar-mode)(scroll-bar-mode -1)) (when (fboundp 'tool-bar-mode)(tool-bar-mode -1))