From bf6902c6da2c72df399f8136c9511bde7c2b4783 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Sat, 1 Feb 2020 23:33:30 +0100 Subject: Remove obsolete workaround whitespace-mode always respects fill-column now. --- lisp/init-appearance.el | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lisp/init-appearance.el') diff --git a/lisp/init-appearance.el b/lisp/init-appearance.el index 3fb9ae4..22cd928 100644 --- a/lisp/init-appearance.el +++ b/lisp/init-appearance.el @@ -42,19 +42,10 @@ ;; highlight lines exceeding fill-column (use-package whitespace :ensure nil ;; package is bundled with emacs - :diminish whitespace-mode - :init (setq whitespace-style '(face empty lines-tail trailing)) - (setq whitespace-line-column nil) - - :config - ;; make whitespace-mode respect a mode-specific fill-column value - (add-hook 'hack-local-variables-hook - (lambda () - (when (derived-mode-p 'prog-mode) - (whitespace-mode 1))))) + (setq whitespace-line-column nil)) ;; disable word wrapping (setq-default truncate-lines t) -- cgit v1.2.3