Skip to content

Commit

Permalink
fix(builtin): fix loading the +whitespace-auto-cleanup-mode hook
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jan 27, 2024
1 parent 4da1401 commit 2245c31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,7 @@ current line.")
:custom
;; Default behavior for `whitespace-cleanup'
(whitespace-action '(cleanup auto-cleanup))
:commands +whitespace-auto-cleanup-mode
:init
(defcustom +whitespace-auto-cleanup-modes '(prog-mode conf-mode org-mode markdown-mode latex-mode tex-mode bibtex-mode)
"Enable auto white space cleanup before saving for these derived modes."
Expand All @@ -1445,7 +1446,7 @@ current line.")
:type 'boolean)

(define-minor-mode +whitespace-auto-cleanup-mode
"Automatically highlight matches to the current selection in active windows."
"Automatically cleanup trailing whitespace."
:init-value nil
:global t
(if +whitespace-auto-cleanup-mode
Expand Down

0 comments on commit 2245c31

Please sign in to comment.