From 9d84faf97a55f81ca4f58d6cb2c40f9f07d9aff4 Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Sun, 15 Sep 2024 19:40:21 +0200 Subject: [PATCH] ADD custom visit/reload config functions --- config_new.org | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/config_new.org b/config_new.org index 4747938..b5d6d45 100644 --- a/config_new.org +++ b/config_new.org @@ -667,3 +667,20 @@ https://github.com/remyferre/comment-dwim-2 (when (equal default-directory dir) (myrmi/reload-dir-locals-for-current-buffer)))))) #+END_SRC + +** Visit/reload config + +These snippets assume my-config-file variable is set outside this configuration. +This should normally be done by the init.el to load this configuration. + +#+BEGIN_SRC emacs-lisp +(defun myrmi/visit-config () + "Reloads ~/.emacs.d/config.org at runtime" + (interactive) + (find-file my-config-file)) + +(defun myrmi/reload-config () + "Reloads ~/.emacs.d/config.org at runtime" + (interactive) + (org-babel-load-file my-config-file)) +#+END_SRC