From 262b2f957b8cbe01fdd5a79d2eb0a3d385e4068a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 16 May 2018 13:14:03 +0200 Subject: [PATCH] Fix associate! not enabling minor modes for :files/:modes/:when Fixes #585 --- core/core-lib.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-lib.el b/core/core-lib.el index e5b953295..22f272579 100644 --- a/core/core-lib.el +++ b/core/core-lib.el @@ -216,7 +216,7 @@ Body forms can access the hook's arguments through the let-bound variable (let ((hook-name (intern (format "doom--init-mode-%s" mode)))) `(progn (defun ,hook-name () - (when (and (boundp ',mode) + (when (and (fboundp ',mode) (not ,mode) (and buffer-file-name (not (file-remote-p buffer-file-name))) ,(if match `(if buffer-file-name (string-match-p ,match buffer-file-name)) t)