From b9cd9fa20a1c3c83452b8e77afb676b72bc28317 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 1 Dec 2024 11:07:17 +0100 Subject: emacs: Don’t show trailing whitespace by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/emacs/init.el | 6 ------ 1 file changed, 6 deletions(-) (limited to '.config/emacs') diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 0c028ed..8726462 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -217,12 +217,6 @@ buffer suppressed." (add-hook 'before-save-hook #'delete-trailing-whitespace) (prefer-coding-system 'utf-8) - ;; Show trailing whitespace but only in relevant buffers - (dolist (mode '(conf-mode prog-mode text-mode)) - (add-hook (mm-mode-to-hook mode) - (defun mm-show-trailing-whitespace () - (setopt show-trailing-whitespace t)))) - ;; Disabled modes (blink-cursor-mode -1) (line-number-mode -1) -- cgit v1.2.3