Better string checks in associate! macro
This commit is contained in:
parent
698331e4f0
commit
a55b3c599b
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ Examples:
|
|||
(let ((hook-name (intern (format "narf--init-mode-%s" mode))))
|
||||
`(progn
|
||||
(defun ,hook-name ()
|
||||
(when (and ,(if match `(string-match-p ,match buffer-file-name) t)
|
||||
(when (and ,(if match `(if buffer-file-name (string-match-p ,match buffer-file-name)) t)
|
||||
(or ,(not files)
|
||||
(and (boundp ',mode)
|
||||
(not ,mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue