branch: externals/denote
commit 2d83bf12a33317925e3fc570b1ec0176d473d342
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Make denote-fontify-links-mode-maybe also cover markdown-mode
    
    This is because of commit 72e3c01, which makes Markdown mode buffers
    work with all Denote links (direct links and query links).
---
 denote.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/denote.el b/denote.el
index 92708f5284..f79e7c36a9 100644
--- a/denote.el
+++ b/denote.el
@@ -6465,9 +6465,10 @@ To be used as a `thing-at' provider."
 
 ;;;###autoload
 (defun denote-fontify-links-mode-maybe ()
-  "Enable `denote-fontify-links-mode' in a denote file unless in `org-mode'."
+  "Enable `denote-fontify-links-mode' unless in Org or Markdown.
+Org or Markdown buffers automatically recognise Denote links."
   (when (and buffer-file-name
-             (not (derived-mode-p 'org-mode))
+             (not (derived-mode-p 'org-mode 'markdown-mode))
              (denote-file-is-in-denote-directory-p buffer-file-name)
              (denote-file-has-supported-extension-p buffer-file-name)
              (denote-file-has-denoted-filename-p buffer-file-name))

Reply via email to