Update .emacs.d/README.org
Update .emacs.d/early-init.el
This commit is contained in:
parent
1b5375653a
commit
2f7cfcbe20
2 changed files with 8 additions and 10 deletions
|
@ -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:
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue