Update the tags alist

master
Jacopo De Simoi 4 years ago
parent bf72b1f43e
commit 1530c4d40f
  1. 18
      zshrc.org

@ -30,17 +30,23 @@ the function returns '(".zshrc" ".zshrc.pi")
#+name:def-tag
#+begin_src emacs-lisp :results output silent
(setq tag-to-filenames-alist '(("daily" . ".zshrc")
("pi" . ".zshrc.pi")))
("blender" . ".zshrc.blender")
("pi" . ".zshrc.pi")
("android" . ".zshrc.android")
("mips" . ".zshrc.mips")))
(defun org-tags-to-filenames ()
(remove nil (mapcar
(lambda (tag)
(cdr (assoc tag tag-to-filenames-alist)))
(org-split-string (car (last (org-heading-components))) ":"))))
(let ((tags (car (last (org-heading-components)))))
(when (stringp tags)
(remove nil (mapcar
(lambda (tag)
(cdr (assoc tag tag-to-filenames-alist)))
(org-split-string tags ":"))))))
#+end_src
*** Include :daily:pi:android:
*** Include :daily:pi:android:
First, include a script that sets a number of confidential data (e.g. API keys and such)
#+BEGIN_SRC sh

Loading…
Cancel
Save