Create crypto journal

master
Jacopo De Simoi 6 years ago
parent 3c4f257445
commit 530b7950b0
  1. 35
      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][ 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]] Source on gitlab]]
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(defun tangle-file(&rest files) (defun tangle-file(&rest files nokill)
"Tangle FILES or all files in the project." "Tangle FILES or all files in the project."
(when (null files) (when (null files)
(setq files command-line-args-left)) (setq files command-line-args-left))
(dolist (file files) (dolist (file files)
(with-current-buffer (find-file-noselect file) (with-current-buffer (find-file-noselect file)
(org-babel-tangle) (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)))) (kill-buffer))))
#+END_SRC #+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 ** elisp
*** Paredit *** Paredit
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -1435,10 +1458,12 @@
*** Journal *** Journal
Setup ~org-journal~ Setup ~org-journal~
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(require 'org-journal) (require 'org-journal)
(setq org-journal-dir "~/org/journal" (setq org-journal-dir "~/org/journal"
org-journal-file-type 'weekly org-journal-file-type 'yearly
org-journal-file-format "%Y%m%d.org") org-journal-file-format "%Y"
org-journal-encrypt-journal t)
#+END_SRC #+END_SRC
* Specialties * Specialties

Loading…
Cancel
Save