/ Published in: Emacs Lisp

An answer to the 'reload-dot-emacs exercise found here: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(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!"))
URL: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589
Comments
