From e290c6e03b267346c982b4dd822b3f6aa1e64a6d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 10 Aug 2018 23:32:21 +0200 Subject: [PATCH] Minor refactor of associate!'s initializer --- core/core-lib.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-lib.el b/core/core-lib.el index c64bd6133..132877e07 100644 --- a/core/core-lib.el +++ b/core/core-lib.el @@ -408,7 +408,8 @@ The available conditions are: (and (fboundp ',mode) (not (bound-and-true-p ,mode)) (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) (doom--resolve-path-forms (if (stringp (car files)) (cons 'and files) files)