diff options
-rw-r--r-- | init.org | 17 | ||||
-rw-r--r-- | lib/themes/jao-themes.el | 1 |
2 files changed, 8 insertions, 10 deletions
@@ -968,22 +968,19 @@ (setq kill-read-only-ok t) (setq view-read-only nil) #+end_src -*** Whitespace - #+BEGIN_SRC emacs-lisp +*** Whitespace and filling column + #+begin_src emacs-lisp (add-hook 'write-file-functions 'delete-trailing-whitespace) (setq-default indicate-empty-lines nil) - #+END_SRC -*** Filling and fill column indicator - Some variables to control where fci mode will be or is being used - #+begin_src emacs-lisp (setq fill-column 78) (setq comment-auto-fill-only-comments nil) - (use-package hi-lock + (use-package whitespace :init - (defun jao-hi-long-lines () - (hi-lock-line-face-buffer ".\\{81\\}" 'hi-blue)) - :hook (prog-mode . jao-hi-long-lines)) + (setq whitespace-style + '(face tabs trailing lines-tail empty missing-newline-at-eof) + whitespace-line-column 80) + :hook (prog-mode . whitespace-mode)) #+end_src *** Visible mode diff --git a/lib/themes/jao-themes.el b/lib/themes/jao-themes.el index 2310e60..efc6a9f 100644 --- a/lib/themes/jao-themes.el +++ b/lib/themes/jao-themes.el @@ -1154,6 +1154,7 @@ (wgrep-file-face (p f01)) (wgrep-reject-face (p error) ul) (widget-button (~ button)) + (whitespace-line (p error) ul) (widget-button-pressed nbf (~ custom-button-pressed)) (widget-button-face (~ button)) (widget-button-pressed-face (~ button)) |