From 33a62f66f8a5c62df9bd0ba71f0a3631211ba64f Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Sat, 4 Aug 2018 19:46:46 -0400 Subject: [PATCH] Add update-init-file function --- init.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.el b/init.el index 52b4b7f..aa34a78 100644 --- a/init.el +++ b/init.el @@ -185,6 +185,13 @@ ;; Init File ;;==================== +;; Define a function that will pull in the latest version of this init file. +(defun update-init-file () + "Download the latest init file from jessieh.net." + (interactive) + (message "Updating init file...") + (url-copy-file "https://jessieh.net/emacs" (concat user-emacs-directory "init.el") t)) + ;; Make sure that the latest version of the init file is always byte-compiled. (if (file-newer-than-file-p (concat user-emacs-directory "init.el")