home/natto/emacs: minor changes

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-06-02 16:04:14 +05:30
parent d0a53ea9a3
commit 194f03c578
4 changed files with 95 additions and 71 deletions

View File

@@ -1,2 +1,8 @@
(delete-file (expand-file-name "~/.emacs.d/config.el"))
(org-babel-load-file (expand-file-name "~/.emacs.d/config.org"))
(defconst config-org (expand-file-name "config.org" user-emacs-directory))
(defconst config-el (expand-file-name "config.el" user-emacs-directory))
(unless (file-exists-p config-el)
(require 'org)
(org-babel-tangle-file config-org config-el))
(load-file config-el)