From 4dd794f90f5405c4aca4587855308901a263df0d Mon Sep 17 00:00:00 2001 From: Jack Foltz Date: Mon, 4 Feb 2019 23:49:57 -0500 Subject: [PATCH] Move whitespace mode to prog-mode only --- lain/.emacs.d/config.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lain/.emacs.d/config.org b/lain/.emacs.d/config.org index 0ed086b..f6afcce 100644 --- a/lain/.emacs.d/config.org +++ b/lain/.emacs.d/config.org @@ -105,13 +105,14 @@ Make yes-or-no prompts ask for y or n instead (add-hook 'prog-mode-hook #'foltz-disable-tabs) -(global-whitespace-mode) (setq whitespace-style '(face tabs tab-mark trailing)) (custom-set-faces '(whitespace-tab ((t (:foreground "#636363"))))) (setq whitespace-display-mappings '((tab-mark 9 [124 9] [92 9]))) + +(add-hook 'prog-mode-hook #'whitespace-mode) #+END_SRC ** Keep backup files and lockfiles out of the way By default, emacs makes files like =file~= and =#file#= and clutters up