diff --git a/global.org b/global.org index 5ed5ddc..67e30d5 100644 --- a/global.org +++ b/global.org @@ -924,15 +924,38 @@ This can be used to tangle one or more files to their output files [[https://gitlab.com/to1ne/literate-dotfiles/blob/master/elisp/tangle.el][ Source on gitlab]] #+BEGIN_SRC emacs-lisp - (defun tangle-file(&rest files) + (defun tangle-file(&rest files nokill) "Tangle FILES or all files in the project." (when (null files) (setq files command-line-args-left)) (dolist (file files) (with-current-buffer (find-file-noselect file) (org-babel-tangle) +; (unless nokill (kill-buffer)) + ))) + #+END_SRC +*** Export file + This can be used to tangle one or more files to their output files [[https://gitlab.com/to1ne/literate-dotfiles/blob/master/elisp/tangle.el][ + Source on gitlab]] + #+BEGIN_SRC emacs-lisp + (defun export-org-file-pdf(&rest files nokill) + "Export FILES or all files in the project." + (when (null files) + (setq files command-line-args-left)) + (dolist (file files) + (with-current-buffer (find-file-noselect file) + (org-latex-export-to-pdf) (kill-buffer)))) #+END_SRC +*** Crypto stuff + #+BEGIN_SRC emacs-lisp + (require 'org-crypt) + (org-crypt-use-before-save-magic) + (setq org-tags-exclude-from-inheritance (quote ("crypt"))) + + (setq org-crypt-key "C86A9E7675295C62") + #+END_SRC + ** elisp *** Paredit #+BEGIN_SRC emacs-lisp @@ -1435,10 +1458,12 @@ *** Journal Setup ~org-journal~ #+BEGIN_SRC emacs-lisp - (require 'org-journal) - (setq org-journal-dir "~/org/journal" - org-journal-file-type 'weekly - org-journal-file-format "%Y%m%d.org") + (require 'org-journal) + (setq org-journal-dir "~/org/journal" + org-journal-file-type 'yearly + org-journal-file-format "%Y" + org-journal-encrypt-journal t) + #+END_SRC * Specialties