Revision: 17058
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 21, 2009 14:52 by bigfaceworm
Initial Code
(defun reload-dot-emacs ()
"Save the .emacs buffer if needed, then reload .emacs."
(interactive)
(let ((dot-emacs "~/.emacs"))
(and (get-file-buffer dot-emacs)
(save-buffer (get-file-buffer dot-emacs)))
(load-file dot-emacs))
(message "Re-initialized!"))
Initial URL
http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589
Initial Description
An answer to the 'reload-dot-emacs exercise found here: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589
Initial Title
reload-dot-emacs
Initial Tags
Initial Language
Emacs Lisp