mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-21 13:53:38 -05:00
Fix associate! unbound major-mode var check
This commit is contained in:
@@ -101,7 +101,8 @@ Examples:
|
|||||||
(defun ,hook-name ()
|
(defun ,hook-name ()
|
||||||
(when (and (if ,match (string-match-p ,match (buffer-file-name)) t)
|
(when (and (if ,match (string-match-p ,match (buffer-file-name)) t)
|
||||||
(or ,(not files)
|
(or ,(not files)
|
||||||
(and (not ,mode)
|
(and (boundp ',mode)
|
||||||
|
(not ,mode)
|
||||||
(narf/project-has-files ,@(-list files)))))
|
(narf/project-has-files ,@(-list files)))))
|
||||||
(,mode 1)))
|
(,mode 1)))
|
||||||
,@(if (and in (listp in))
|
,@(if (and in (listp in))
|
||||||
|
Reference in New Issue
Block a user