Commit fd17111fc221

Vincent Demeester <vincent@sbr.pm>
2015-07-30 17:49:31
Add org-link for org-tags-view
1 parent 3b9bdc7
Changed files (1)
.emacs.d
.emacs.d/emacs.org
@@ -2077,6 +2077,19 @@
                           path (or desc "video"))))))
     #+END_SRC
 
+    And some for =org-mode= itself.
+
+    #+BEGIN_SRC emacs-lisp
+      ;; from http://endlessparentheses.com/use-org-mode-links-for-absolutely-anything.html
+      (org-add-link-type
+       "tag" 'endless/follow-tag-link)
+
+      (defun endless/follow-tag-link (tag)
+        "Display a list of TODO headlines with tag TAG.
+      With prefix argument, also display headlines without a TODO keyword."
+        (org-tags-view (null current-prefix-arg) tag))
+    #+END_SRC
+
 
 *** Code blocks