Minor refactor of associate!'s initializer

This commit is contained in:
Henrik Lissner 2018-08-10 23:32:21 +02:00
parent 631f075a82
commit e290c6e03b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)