diff --git a/dot_emacs.d/README.org b/dot_emacs.d/README.org index 4fc772c..9eb786d 100644 --- a/dot_emacs.d/README.org +++ b/dot_emacs.d/README.org @@ -5,7 +5,6 @@ * Table of Contents :TOC: - [[#packages-initialization][Packages initialization]] - [[#vc-use-package][vc-use-package]] - - [[#automatically-tangle-on-save][Automatically tangle on save]] - [[#general-config][General config]] - [[#move-temporary-files-to-tmpusername][Move temporary files to /tmp/{username}]] - [[#minimal-interface][Minimal interface]] @@ -56,13 +55,6 @@ vc-use-package integrates package-vc-install, which allows installing packages f (require 'vc-use-package)) #+end_src -** Automatically tangle on save -#+begin_src emacs-lisp - (add-hook 'org-mode-hook - (lambda () (add-hook 'after-save-hook #'org-babel-tangle - :append :local))) -#+end_src - * General config ** Move temporary files to /tmp/{username} @@ -401,3 +393,8 @@ Tree-sitter is a built-in Emacs package that allows us to have extremely well in (use-package notmuch :defer t) #+end_src + +;; Local Variables: +;; eval: (add-hook 'after-save-hook (lambda ()(if (y-or-n-p "Reload?")(load-file user-init-file))) nil t) +;; eval: (add-hook 'after-save-hook (lambda ()(if (y-or-n-p "Tangle?")(org-babel-tangle))) nil t) +;; End: diff --git a/dot_emacs.d/early-init.el b/dot_emacs.d/early-init.el index 8cb4ac1..8137f52 100644 --- a/dot_emacs.d/early-init.el +++ b/dot_emacs.d/early-init.el @@ -1,3 +1,6 @@ +;; Enable local variables +(setq enable-local-variables :safe) + ;; Paths to config.org and the tangled init.el (defvar org-config-file (expand-file-name "README.org" user-emacs-directory)) (defvar tangled-init-file (expand-file-name "init.el" user-emacs-directory)) @@ -11,5 +14,3 @@ (when (file-newer-than-file-p org-config-file tangled-init-file) (tangle-org-config)) - -