From 618c854d212ea956ed236baa418c327db34d7b98 Mon Sep 17 00:00:00 2001 From: Maciej Szlosarczyk Date: Tue, 16 Jul 2019 22:25:17 +0300 Subject: [PATCH] Simplify function call --- 05prog-mode.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/05prog-mode.el b/05prog-mode.el index 5751b91..dd6beca 100644 --- a/05prog-mode.el +++ b/05prog-mode.el @@ -19,12 +19,11 @@ :defer t :hook (((prog-mode text-mode) . whitespace-mode) (before-save . whitespace-cleanup)) - :init (setq whitespace-style #'(face trailing empty)) - ;;; Insert newline on save - (setq require-final-newline t) - ;;; Tabs are spaces and are general at 2. Guide indent - ;;; with lines - (setq-default indent-tabs-mode nil)) + :config + (setq whitespace-style #'(face trailing empty newline) + ;;; Insert newline on save + require-final-newline t + indent-tabs-mode nil)) ;; Use colorful, matching parens (use-package rainbow-delimiters