mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Minor refactor of associate!'s initializer
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user