From 3627a60fff94e227b9cc8e0e1734cb5fe0619210 Mon Sep 17 00:00:00 2001 From: jao Date: Sun, 10 Apr 2022 02:45:46 +0100 Subject: whitespace mode (lines-tail works better for me) --- init.org | 17 +++++++---------- lib/themes/jao-themes.el | 1 + 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/init.org b/init.org index fcef5bb..2151c13 100644 --- a/init.org +++ b/init.org @@ -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)) -- cgit v1.2.3