Minor refactor of associate!'s initializer
This commit is contained in:
parent
631f075a82
commit
e290c6e03b
1 changed files with 2 additions and 1 deletions
|
@ -408,7 +408,8 @@ The available conditions are:
|
||||||
(and (fboundp ',mode)
|
(and (fboundp ',mode)
|
||||||
(not (bound-and-true-p ,mode))
|
(not (bound-and-true-p ,mode))
|
||||||
(and buffer-file-name (not (file-remote-p buffer-file-name)))
|
(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)
|
,(or (not match)
|
||||||
|
`(if buffer-file-name (string-match-p ,match buffer-file-name)))
|
||||||
,(or (not files)
|
,(or (not files)
|
||||||
(doom--resolve-path-forms
|
(doom--resolve-path-forms
|
||||||
(if (stringp (car files)) (cons 'and files) files)
|
(if (stringp (car files)) (cons 'and files) files)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue