Fix associate! not enabling minor modes for :files/:modes/:when
Fixes #585
This commit is contained in:
parent
3e6d6279a6
commit
262b2f957b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user