Commit 97974236d268

Vincent Demeester <vincent@sbr.pm>
2020-08-19 17:34:47
tools/emacs: remove duplicate tangle-all-notes
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 1b823e3
Changed files (1)
tools
emacs
tools/emacs/config/config-org.el
@@ -593,17 +593,6 @@ file which do not already have one."
           (monthname " *" day ", *" year "[^0-9]")
           (year "[-/]" month "[-/]" day "[^0-9]")
           (dayname "\\W"))))
-(use-package org
-  :config
-  (defun vde/tangle-all-notes ()
-    "Produce files from my notes folder.
-This function will attempt to tangle all org files from `org-notes-dir'. The
-assumption is that those will generate configuration file (in `~/src/home'),
-and thus keeping the configuration source up-to-date"
-    (mapc (lambda (x) (org-babel-tangle-file x))
-          (ignore-errors
-            (directory-files-recursively org-notes-dir "\.org$"))))
-  :hook ((kill-emacs . vde/tangle-all-notes)))
 
 (use-package org
   :defer t