From 2e4aadea48e49410c9bdb79c8f539ebb17bf082a Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 31 Mar 2021 16:33:24 -0500 Subject: Add `refresh-emacs' --- early-init.el | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'early-init.el') 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 @@ load-path) (require 'acdw) +;;; Refresh Emacs easily +(defun refresh-emacs () + "Reload Emacs's configuration files." + (interactive) + (dolist (file (list (locate-user-emacs-file "early-init.el") + (locate-user-emacs-file "init.el" ".emacs"))) + (when (file-exists-p file) + (load-file file)))) + ;;; Speed up init ;; see doom-emacs, et al. -- cgit 1.4.1-21-gabe81