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

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

[elpa] externals/embark cb5d69987b: Have target finder also apply to age


From: ELPA Syncer
Subject: [elpa] externals/embark cb5d69987b: Have target finder also apply to agenda buffers
Date: Wed, 18 May 2022 13:57:31 -0400 (EDT)

branch: externals/embark
commit cb5d69987b03029a4727998f098305cd2e212d3f
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>

    Have target finder also apply to agenda buffers
    
    We definitely want at least to find links in agenda headings, put
    possible other elements are useful too, specially in agenda views that
    show a couple of lines of context.
---
 embark-org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/embark-org.el b/embark-org.el
index 01ad292956..cdef13cfa8 100644
--- a/embark-org.el
+++ b/embark-org.el
@@ -103,7 +103,7 @@
 
 (defun embark-org-target-element-context ()
   "Target the smallest Org element or object around point."
-  (when-let (((derived-mode-p 'org-mode))
+  (when-let (((derived-mode-p 'org-mode 'org-agenda-mode))
              (element (org-element-context))
              ((memq (car element) embark-org--types))
              (begin (org-element-property :begin element))



reply via email to

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