Advertisement
mark-naylor-1701

magit-status-only

Oct 19th, 2024
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.30 KB | None | 0 0
  1. (defun magit-status-only ()
  2.   "Opens a magit status buffer, replacing the current buffer in the
  3. current window. If not in a git repository, prompt for creation
  4. of one."
  5.   (interactive )
  6.   (let ((display-buffer-base-action '(display-buffer-same-window)))
  7.     (call-interactively #'magit-status)))
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement