[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 83b6e35880 20/29: Make query links use their own
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 83b6e35880 20/29: Make query links use their own face in Org buffers |
Date: |
Fri, 28 Mar 2025 03:58:12 -0400 (EDT) |
branch: externals/denote
commit 83b6e35880a4b738637c7ebb55ceee3dd76351b3
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make query links use their own face in Org buffers
I will extend this to 'denote-fontify-links'. The technical discussion
for this is in issue 561:
<https://github.com/protesilaos/denote/issues/561>.
---
denote.el | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/denote.el b/denote.el
index 2bcb2994f6..e485479140 100644
--- a/denote.el
+++ b/denote.el
@@ -4373,6 +4373,11 @@ Construct the file name in accordance with the user
option
:group 'denote-faces
:package-version '(denote . "0.5.0"))
+(defface denote-faces-query-link '((t :inherit link-visited))
+ "Face used to style Denote query links in the buffer."
+ :group 'denote-faces
+ :package-version '(denote . "4.0.0"))
+
(defface denote-faces-subdirectory '((t :inherit bold))
"Face for subdirectory of file name.
This should only ever needed in the backlinks' buffer (or
@@ -5853,6 +5858,12 @@ backend."
(path (denote-get-path-by-id identifier)))
path))
+(defun denote-link-ol-face (path)
+ "Return appropriate face for PATH."
+ (if (denote-identifier-p path)
+ 'denote-faces-link
+ 'denote-faces-query-link))
+
;; The `eval-after-load' part with the quoted lambda is adapted from
;; Elfeed: <https://github.com/skeeto/elfeed/>.
@@ -5867,7 +5878,7 @@ backend."
(org-link-set-parameters
"denote"
:follow #'denote-link-ol-follow
- :face 'denote-faces-link
+ :face #'denote-link-ol-face
:help-echo #'denote-link-ol-help-echo
:complete #'denote-link-ol-complete
:store #'denote-link-ol-store
- [elpa] externals/denote 490ad08718 05/29: Make 'denote-query' insert a link without checking for matches, (continued)
- [elpa] externals/denote 490ad08718 05/29: Make 'denote-query' insert a link without checking for matches, ELPA Syncer, 2025/03/28
- [elpa] externals/denote e1475d1c2b 13/29: Change denote-query-links-buffer-function in the interest of simplicity, ELPA Syncer, 2025/03/28
- [elpa] externals/denote dbea20fde2 15/29: Make sure that denote--query-last-dired-buffer is a buffer, ELPA Syncer, 2025/03/28
- [elpa] externals/denote b272883038 17/29: Use upper case letters in the query links prompts to improve usability, ELPA Syncer, 2025/03/28
- [elpa] externals/denote ff50b32258 22/29: Revise "link in context" regexp to also cover query links, ELPA Syncer, 2025/03/28
- [elpa] externals/denote be557935dc 18/29: Add error check to query links to ensure they exit if the file type is unrecognised, ELPA Syncer, 2025/03/28
- [elpa] externals/denote c2f3ca7cf4 09/29: Make denote-fontify-links also work with query links, ELPA Syncer, 2025/03/28
- [elpa] externals/denote dec1087e01 25/29: Update the doc string of denote-query-filenames-link, ELPA Syncer, 2025/03/28
- [elpa] externals/denote a795d23f12 26/29: Document the new query links and update the manual accordingly, ELPA Syncer, 2025/03/28
- [elpa] externals/denote 89071cffce 11/29: Expand query links to also work for file names and change their format, ELPA Syncer, 2025/03/28
- [elpa] externals/denote 83b6e35880 20/29: Make query links use their own face in Org buffers,
ELPA Syncer <=
- [elpa] externals/denote 7e0a7944e1 24/29: Update the doc string of denote-query-contents-link, ELPA Syncer, 2025/03/28
- [elpa] externals/denote 25409b6092 28/29: Add denote-sort-dired to the menu bar, ELPA Syncer, 2025/03/28
- [elpa] externals/denote 9d32f611e7 27/29: Add query links to the menu bar, ELPA Syncer, 2025/03/28
- [elpa] externals/denote 9422778efa 29/29: Add missing autoload cookies for non-Org link fontification, ELPA Syncer, 2025/03/28