Browse Source

Find user-init-file when given prefix arg

custom
Geoff Shannon 12 years ago
parent
commit
3896e421d0
  1. 10
      core/prelude-core.el

10
core/prelude-core.el

@ -550,10 +550,12 @@ This follows freedesktop standards, should work in X servers."
'(2 "_NET_WM_STATE_FULLSCREEN" 0)) '(2 "_NET_WM_STATE_FULLSCREEN" 0))
(error "Only X server is supported"))) (error "Only X server is supported")))
(defun prelude-find-user-init-file ()
"Edit the `prelude-user-init-file', in another window."
(interactive)
(find-file-other-window prelude-user-init-file))
(defun prelude-find-user-init-file (arg)
"Edit the `prelude-user-init-file', in another window.
With a prefix argument ARG, find the `user-init-file' instead."
(interactive "P")
(if arg (find-file-other-window user-init-file)
(find-file-other-window prelude-user-init-file)))
(defun prelude-find-shell-init-file () (defun prelude-find-shell-init-file ()
"Edit the shell init file in another window." "Edit the shell init file in another window."

Loading…
Cancel
Save