summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-02-24 16:33:26 -0700
committerSean Whitton <spwhitton@spwhitton.name>2018-02-24 16:33:43 -0700
commit4bb6ef288be9d31a93535bbfd5fb76c006cdcbb3 (patch)
tree8bfcc50ad109e718285272dbe4b91ef26757d9c5 /.emacs.d/snippets
parent8a92f6644845032d352c33a81bd81ad13ca4a5d7 (diff)
downloaddotfiles-4bb6ef288be9d31a93535bbfd5fb76c006cdcbb3.tar.gz
add flagged org-mode yasnippet
Diffstat (limited to '.emacs.d/snippets')
-rw-r--r--.emacs.d/snippets/org-mode/flagged15
1 files changed, 15 insertions, 0 deletions
diff --git a/.emacs.d/snippets/org-mode/flagged b/.emacs.d/snippets/org-mode/flagged
new file mode 100644
index 00000000..96311a2f
--- /dev/null
+++ b/.emacs.d/snippets/org-mode/flagged
@@ -0,0 +1,15 @@
+# To use this, find flagged thread in a notmuch search, use `c i` to
+# invoke `notmuch-search-stash-thread-id`. Then go to an Org-mode doc
+# and use this snippet to insert a link that will go to the thread
+# with only starred messages expanded for view.
+#
+# The purpose of this is for cases where there are multiple actionable
+# messages in a single thread, such that I want to view them all in a
+# single buffer. I flag those, and create a link to the thread using
+# this snippet. Creating Org links to individual messages would not
+# achieve this. And having an 'inbox' tag which represents actionable
+# but read messages would add overhead as I'd have to get used to
+# removing that tag from messages, and sort out syncing the tag. The
+# case comes up too rarely for it to be worth doing that.
+# --
+[[notmuch:`(yank)` and tag:flagged][${1:Flagged messages in thread}]] \ No newline at end of file