summaryrefslogtreecommitdiffhomepage
path: root/email.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-05-24 06:37:46 +0100
committerjao <jao@gnu.org>2021-05-24 06:37:46 +0100
commit832d146adb888974ed181147ca87bb49f371e79a (patch)
treeb6aa2c44913f69de4723fffc8ad26895f01cedc1 /email.org
parent74d813373f82c4a5321a37ee0c308a3f54a8b702 (diff)
downloadelibs-832d146adb888974ed181147ca87bb49f371e79a.tar.gz
elibs-832d146adb888974ed181147ca87bb49f371e79a.tar.bz2
lexical tangling and optional loading
Diffstat (limited to 'email.org')
-rw-r--r--email.org8
1 files changed, 5 insertions, 3 deletions
diff --git a/email.org b/email.org
index 8454f13..6fb334f 100644
--- a/email.org
+++ b/email.org
@@ -1,10 +1,12 @@
#+title: email handling (message mode, bbdb, notmuch, mu4e et al.)
-#+property: header-args :tangle no :comments no :results silent :shebang "#!/bin/bash"
+#+property: header-args :lexical t :tangle yes :comments no :results silent
#+auto_tangle: t
* message mode
*** Customization
#+begin_src emacs-lisp
+ ;; -*- lexical-binding: t; -*-
+
(defvar jao-mails "")
(defvar jao-mails-regexp)
(setq jao-mails-regexp (regexp-opt jao-mails))
@@ -399,7 +401,7 @@
:description description)))))))
#+end_src
*** tag shell script
- #+begin_src bash :tangle ./bin/notmuch-tags.sh :tangle-mode (identity #o755)
+ #+begin_src bash :shebang "#!/bin/bash" :tangle ./bin/notmuch-tags.sh :tangle-mode (identity #o755)
notmuch new > $HOME/var/log/notmuch.log 2>&1
function tag_deleted {
@@ -433,7 +435,7 @@
notmuch tag +deleted +trash -new -unread -- "folder:trash and tag:new"
#+end_src
*** delete tagged shell script
- #+begin_src bash :tangle ./bin/notmuch-expire.sh :tangle-mode (identity #o755)
+ #+begin_src bash :shebang "#!/bin/bash" :tangle ./bin/notmuch-expire.sh :tangle-mode (identity #o755)
notmuch search --output=files --format=text0 tag:deleted | xargs -r0 rm
notmuch new > $HOME/var/log/notmuch-expire.log 2>&1
notmuch compact >> $HOME/var/log/notmuch-expire.log 2>&1