1

Add update-init-file function

This commit is contained in:
Jessie Hildebrandt 2018-08-04 19:46:46 -04:00
parent 01df2ad201
commit 33a62f66f8

View File

@ -185,6 +185,13 @@
;; Init File ;; 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. ;; Make sure that the latest version of the init file is always byte-compiled.
(if (file-newer-than-file-p (if (file-newer-than-file-p
(concat user-emacs-directory "init.el") (concat user-emacs-directory "init.el")