Skip to content

Commit

Permalink
tweak(defaults): correctly set show-trailing-whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed May 25, 2023
1 parent 849dba3 commit 997f6b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/me-defaults.el
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@
frame-resize-pixelwise t
;; Stretch cursor to the glyph width
x-stretch-cursor t
;; Show trailing whitespaces
show-trailing-whitespace t
;; Resize window combinations proportionally
window-combination-resize t
;; Enable time in the mode-line
Expand Down Expand Up @@ -407,6 +405,11 @@ or file path may exist now."
(add-hook 'conf-mode-hook #'visual-line-mode)
(add-hook 'text-mode-hook #'visual-line-mode)

;; Show trailing whitespace in `prog-mode' and `conf-mode'
(defun +show-trailing-whitespace-h () (setq show-trailing-whitespace t))
(add-hook 'prog-mode-hook #'+show-trailing-whitespace-h)
(add-hook 'conf-mode-hook #'+show-trailing-whitespace-h)

;; When MinEmacs is running in an asynchronous Org export context, there is no
;; need to enable these modes. So we load them only if we haven't been launched
;; through the `me-org-export-async-init' file.
Expand Down

0 comments on commit 997f6b2

Please sign in to comment.