Skip to content

Commit

Permalink
change(winny/visit-configuration): Add prefix arg visit other window
Browse files Browse the repository at this point in the history
  • Loading branch information
winny- committed Dec 16, 2024
1 parent 4101ea5 commit 783b0dd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions configuration.org
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@ Try =winny/reload-configuration=. (It is defined in [[file:init.el][=init.el=]]
*** Quickly visit this file

#+begin_src elisp
(defun winny/visit-configuration ()
(defun winny/visit-configuration (&optional other-window)
"Visit configuration.org"
(interactive)
(find-file (concat user-emacs-directory "configuration.org")))
(interactive "P")
(funcall
(if other-window
#'find-file-other-window
#'find-file)
(concat user-emacs-directory "configuration.org")))
#+end_src

* Utility stuff
Expand Down

0 comments on commit 783b0dd

Please sign in to comment.