diff options
author | Case Duckworth | 2021-03-31 16:33:24 -0500 |
---|---|---|
committer | Case Duckworth | 2021-03-31 16:33:24 -0500 |
commit | 2e4aadea48e49410c9bdb79c8f539ebb17bf082a (patch) | |
tree | 3fdd21b872e84d4d14382bfc7b8de36ebda270f5 | |
parent | Add `smart-hungry-delete' (diff) | |
download | emacs-2e4aadea48e49410c9bdb79c8f539ebb17bf082a.tar.gz emacs-2e4aadea48e49410c9bdb79c8f539ebb17bf082a.zip |
Add `refresh-emacs'
-rw-r--r-- | early-init.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/early-init.el b/early-init.el index 8984a17..60889f8 100644 --- a/early-init.el +++ b/early-init.el | |||
@@ -24,6 +24,15 @@ | |||
24 | load-path) | 24 | load-path) |
25 | (require 'acdw) | 25 | (require 'acdw) |
26 | 26 | ||
27 | ;;; Refresh Emacs easily | ||
28 | (defun refresh-emacs () | ||
29 | "Reload Emacs's configuration files." | ||
30 | (interactive) | ||
31 | (dolist (file (list (locate-user-emacs-file "early-init.el") | ||
32 | (locate-user-emacs-file "init.el" ".emacs"))) | ||
33 | (when (file-exists-p file) | ||
34 | (load-file file)))) | ||
35 | |||
27 | ;;; Speed up init | 36 | ;;; Speed up init |
28 | ;; see doom-emacs, et al. | 37 | ;; see doom-emacs, et al. |
29 | 38 | ||