From 72fd61e07bbce7599aa9a61a22c2ce7e35fbebf4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 16 Jun 2019 18:57:14 +0200 Subject: [PATCH] Ensure order of after-change-major-mode-hook hooks Reduces the likeliness of load order issues. --- core/core.el | 2 +- modules/editor/evil/config.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core.el b/core/core.el index 932f312aa..b59b40ec6 100644 --- a/core/core.el +++ b/core/core.el @@ -268,7 +268,7 @@ enable multiple minor modes for the same regexp.") "Run `doom|run-local-var-hooks' if `enable-local-variables' is disabled." (unless enable-local-variables (doom|run-local-var-hooks))) -(add-hook 'after-change-major-mode-hook #'doom|run-local-var-hooks-if-necessary) +(add-hook 'after-change-major-mode-hook #'doom|run-local-var-hooks-if-necessary 'append) (defun doom|create-non-existent-directories () "Automatically create missing directories when creating new files." diff --git a/modules/editor/evil/config.el b/modules/editor/evil/config.el index d3dc7658d..ecdb5e51c 100644 --- a/modules/editor/evil/config.el +++ b/modules/editor/evil/config.el @@ -72,7 +72,7 @@ line with a linewise comment.") (defun +evil|update-shift-width () (setq evil-shift-width tab-width)) - (add-hook 'after-change-major-mode-hook #'+evil|update-shift-width t) + (add-hook 'after-change-major-mode-hook #'+evil|update-shift-width) ;; --- keybind fixes ----------------------