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)