From 025b43aacf34014823b4bba4df4d24ba21d9ea5c Mon Sep 17 00:00:00 2001 From: Jens Luedicke Date: Fri, 5 Sep 2025 14:38:35 +0200 Subject: [PATCH] Fix reloading of config --- init.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 670b1a5..a652631 100644 --- a/init.el +++ b/init.el @@ -632,10 +632,16 @@ (kill-buffer (current-buffer))) (defun reload-emacs-config () - "Reload the Emacs configuration file." + "Reload the Emacs configuration file and all dependent configs." (interactive) + ;; First reload the main init.el (load-file (expand-file-name "init.el" user-emacs-directory)) - (message "Emacs configuration reloaded!")) + + ;; Reload development config if it exists + (let ((dev-config (expand-file-name "emacs-dev-config.el" user-emacs-directory))) + (when (file-exists-p dev-config) + (load-file dev-config))) + ;;; Final Keybindings (global-set-key (kbd "C-x k") 'kill-current-buffer-no-confirm)