branch: externals/denote
commit fa5530e39db2c7d5e1287c21897ab5cf7762f54f
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Tweak denote--file-type-org-extra-p
---
denote.el | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/denote.el b/denote.el
index ed9f57ac40..81e5d35811 100644
--- a/denote.el
+++ b/denote.el
@@ -2496,12 +2496,10 @@ See the format of `denote-file-types'."
(defun denote--file-type-org-extra-p ()
"Return non-nil if this is an `org-capture' or Org Note buffer."
- (or
- (and (bound-and-true-p org-capture-mode)
- (derived-mode-p 'org-mode)
- (string-match-p "\\`CAPTURE.*\\.org" (buffer-name)))
- (and (derived-mode-p 'org-mode)
- (string-match-p "\\`\\*Org Note\\*" (buffer-name)))))
+ (and (derived-mode-p 'org-mode)
+ (or (and (bound-and-true-p org-capture-mode)
+ (string-match-p "\\`CAPTURE.*\\.org" (buffer-name)))
+ (string-match-p "\\`\\*Org Note\\*" (buffer-name)))))
(defun denote-filetype-heuristics (file)
"Return likely file type of FILE.