diff options
author | jao <jao@gnu.org> | 2022-04-10 02:45:46 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-04-10 02:45:46 +0100 |
commit | 3627a60fff94e227b9cc8e0e1734cb5fe0619210 (patch) | |
tree | e0953ed87414c335ee3b567d15b020ab7b4ec0f8 | |
parent | 08e4d700ec73bac929e292000cd1e27176ee9475 (diff) | |
download | elibs-3627a60fff94e227b9cc8e0e1734cb5fe0619210.tar.gz elibs-3627a60fff94e227b9cc8e0e1734cb5fe0619210.tar.bz2 |
whitespace mode (lines-tail works better for me)
-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)) |