From 832d146adb888974ed181147ca87bb49f371e79a Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 24 May 2021 06:37:46 +0100 Subject: lexical tangling and optional loading --- email.org | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'email.org') 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 -- cgit v1.2.3