Skip to content

Commit

Permalink
refactor(builtin): minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 20, 2023
1 parent 086eff9 commit fcb11fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
;;; Code:

(use-package emacs
;; Show trailing whitespace in `prog-mode' and `conf-mode'
:hook ((prog-mode conf-mode) . +show-trailing-whitespace-h)
:hook (after-save . +save--guess-file-mode-h)
:custom
;; ====== Default directories for builtin packages ======
Expand Down Expand Up @@ -198,7 +196,8 @@
(message "+toggle-auto-whitespace-cleanup: Enabled.")
(add-hook 'before-save-hook #'+save--whitespace-cleanup-h)))
:config
(defun +show-trailing-whitespace-h () (setq-local show-trailing-whitespace t))
;; Show trailing whitespace in `prog-mode' and `conf-mode'
(+setq-hook! (prog-mode conf-mode) show-trailing-whitespace t)

;; Guess the major mode after saving a file in `fundamental-mode' (adapted from Doom Emacs).
(defun +save--guess-file-mode-h ()
Expand Down

0 comments on commit fcb11fe

Please sign in to comment.