emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote db14ff0724 1/2: Tweak how denote-backlinks-mode


From: ELPA Syncer
Subject: [elpa] externals/denote db14ff0724 1/2: Tweak how denote-backlinks-mode is fontified
Date: Wed, 26 Oct 2022 03:57:30 -0400 (EDT)

branch: externals/denote
commit db14ff072434f1f70a7351b264658ff88350e811
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Tweak how denote-backlinks-mode is fontified
    
    We do it at the definition of the major mode, not in the helper
    function that prepares the buffer.
---
 denote.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/denote.el b/denote.el
index 520a6b4b32..e030278e1e 100644
--- a/denote.el
+++ b/denote.el
@@ -2601,7 +2601,9 @@ Expand `denote-link-backlinks-display-buffer-action'."
 (make-obsolete-variable 'denote-backlink-mode-map 'denote-backlinks-mode-map 
"0.6.0")
 
 (define-derived-mode denote-backlinks-mode xref--xref-buffer-mode "Backlinks"
-  "Major mode for backlinks buffers.")
+  "Major mode for backlinks buffers."
+  (when denote-link-fontify-backlinks
+    (font-lock-add-keywords nil denote-faces-file-name-keywords-for-backlinks 
t)))
 
 (make-obsolete-variable 'denote-backlink-mode 'denote-backlinks-mode "0.6.0")
 
@@ -2623,8 +2625,6 @@ Use optional TITLE for a prettier heading."
       ;;; We could have a user option to use the current backlink buffer
       (denote-xref--insert-xrefs xrefs-alist)
       (goto-char (point-min))
-      (when denote-link-fontify-backlinks
-        (font-lock-add-keywords nil 
denote-faces-file-name-keywords-for-backlinks t))
       (setq-local revert-buffer-function
                   (lambda (_ignore-auto _noconfirm)
                     (when-let ((buffer-file-name file)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]