Fix reloading of config

This commit is contained in:
Jens Luedicke
2025-09-05 14:38:35 +02:00
parent ef79598cfc
commit 025b43aacf

10
init.el
View File

@@ -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)