Posted By


bigfaceworm on 08/21/09

Tagged


Statistics


Viewed 315 times
Favorited by 2 user(s)

reload-dot-emacs


/ Published in: Emacs Lisp
Save to your folder(s)

An answer to the 'reload-dot-emacs exercise found here: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589


Copy this code and paste it in your HTML
  1. (defun reload-dot-emacs ()
  2. "Save the .emacs buffer if needed, then reload .emacs."
  3. (interactive)
  4. (let ((dot-emacs "~/.emacs"))
  5. (and (get-file-buffer dot-emacs)
  6. (save-buffer (get-file-buffer dot-emacs)))
  7. (load-file dot-emacs))
  8. (message "Re-initialized!"))

URL: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.