From 6393e47c778725864c6141b369a2119eeb0774f2 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Thu, 9 Aug 2018 12:02:18 -0400 Subject: Support highlighting fill-column overflows This was previously semi-supported. There were two problems, however: 1. My fill-column value of 80 got out-of-sync with my white-line-column value of 100. Solution: globally define wpc/fill-column, set that to 80, and consume the new const in my config. 2. Nothing was activating whitespace mode. Solution: add whitespace-mode to prog-mode-hook. This SO answer helped tremendously: https://stackoverflow.com/questions/18855510/have-emacs-highlight-characters-over-80 --- emacs.d/wpc/variables.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'emacs.d/wpc/variables.el') diff --git a/emacs.d/wpc/variables.el b/emacs.d/wpc/variables.el index bd5af2a010..d0bba26159 100644 --- a/emacs.d/wpc/variables.el +++ b/emacs.d/wpc/variables.el @@ -18,5 +18,9 @@ [mouse-5] [down-mouse-5] [drag-mouse-5] [double-mouse-5] [triple-mouse-5]) "This variable stores all of the mouse-related keybindings that Emacs recognizes.") +(defconst wpc/fill-column + 80 + "Variable used to set the defaults for wrapping, highlighting, etc.") + (provide 'variables) ;;; variables.el ends here -- cgit 1.4.1