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 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'init.org') 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 -- cgit v1.2.3