From 19dd4e8db89082f3f4aa3cc1f007e6dbab963cf9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 28 Jul 2019 02:16:58 +0200 Subject: [PATCH] Correct more inline hook defuns --- modules/lang/python/config.el | 2 +- modules/tools/magit/config.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index cd157e0b2..e0579cbad 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -52,7 +52,7 @@ called.") (string= python-shell-interpreter "python")) (setq python-shell-interpreter "python3")) - (add-hook 'python-mode-hook + (add-hook! 'python-mode-hook (defun +python-use-correct-flycheck-executables-h () "Use the correct Python executables for Flycheck." (let ((executable python-shell-interpreter)) diff --git a/modules/tools/magit/config.el b/modules/tools/magit/config.el index 42f097175..cb8fc3e5e 100644 --- a/modules/tools/magit/config.el +++ b/modules/tools/magit/config.el @@ -61,7 +61,7 @@ It is passed a user and repository name.") '("-a" "Autostash" "--autostash")) ;; so magit buffers can be switched to (except for process buffers) - (add-hook 'doom-real-buffer-functions + (add-hook! 'doom-real-buffer-functions (defun +magit-buffer-p (buf) (with-current-buffer buf (and (derived-mode-p 'magit-mode)