load-my-favorite-file


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

Answer to one of the examples here: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589


Copy this code and paste it in your HTML
  1. (defun load-my-favorite-file ()
  2. "Open my favorite file: ~.emacs.
  3. The function is poorly named, didn't really want to 'load' it, just open it."
  4. (interactive)
  5. (find-file "~/.emacs"))
  6.  
  7. (global-set-key (kbd "C-c e" 'load-my-favorite-file)

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.