Created
October 29, 2008 19:55
-
-
Save bastos/20804 to your computer and use it in GitHub Desktop.
Emacs lisp function to quick edit dot emacs file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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