]> git.armaanb.net Git - config.org.git/commitdiff
Switch to using whitespace mode
authorArmaan Bhojwani <me@armaanb.net>
Mon, 31 May 2021 20:55:19 +0000 (20:55 +0000)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 31 May 2021 20:55:19 +0000 (20:55 +0000)
global-fill-column-indicator-mode wouldn't work on kiss box

config.org

index 43e7c29798be8cb222aa6931e5a1a4cf191126f6..f9a77cd9579ce9f726445008aa02190dd3ab65bd 100644 (file)
@@ -113,14 +113,16 @@ Show current column and file size.
   (use-package minions
     :config (minions-mode))
 #+end_src
-** Ruler
-Show a ruler at a certain number of chars depending on mode.
+** Whitespace mode
+Highlight whitespace and other bad text practices.
 #+begin_src emacs-lisp
-  (setq display-fill-column-indicator-column 80)
-  (global-display-fill-column-indicator-mode)
+  (use-package whitespace
+    :custom (whitespace-style '(face lines-tail)))
+  (dolist (hook '(prog-mode-hook))
+    (add-hook hook (lambda () (whitespace-mode 1))))
 #+end_src
 ** Highlight todo items in comments
-#+begin_src emacs-lisp
++begin_src emacs-lisp
   (use-package hl-todo
     :straight (hl-todo :type git :host github :repo "tarsius/hl-todo")
     :config (global-hl-todo-mode 1))