From 2f7cfcbe2039b7f351c12e7c44bcf6324fcaafdb Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Tue, 16 Jul 2024 23:42:02 +0200 Subject: [PATCH] Update .emacs.d/README.org Update .emacs.d/early-init.el --- dot_emacs.d/README.org | 13 +++++-------- dot_emacs.d/early-init.el | 5 +++-- 2 files changed, 8 insertions(+), 10 deletions(-) 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)) - -