Skip to content

Instantly share code, notes, and snippets.

@bastos
Created October 29, 2008 19:55
Show Gist options
  • Save bastos/20804 to your computer and use it in GitHub Desktop.
Save bastos/20804 to your computer and use it in GitHub Desktop.
Emacs lisp function to quick edit dot emacs file
;; from http://dotfiles.org/~lwu/.emacs
; code copied from XEmacs's Options\Edit Init File menu code
(defun edit-dot-emacs ()
"Edits the user's .emacs file"
(interactive)
(progn
(find-file (or user-init-file "~/.xemacs/custom.el"))
(or (eq major-mode (quote emacs-lisp-mode)) (emacs-lisp-mode))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment