From 1b49c700c83d1f8a308c671744255c95dcb43dd4 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 12 Jul 2020 17:00:20 -0400 Subject: [PATCH] Allow launching `magit-status-no-new-window` as initial command ..or just before magit. If it's in the `:config`, the command won't exist until magit is loaded. --- .emacs.d/init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index a6ab676..af82812 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -475,7 +475,7 @@ :bind (("C-x g" . magit-status) (:map magit-status-mode-map (("i" . magit-gitignore-in-topdir) ("I" . magit-gitignore-in-gitdir)))) - :config + :init (defun magit-status-no-new-window (directory) (interactive "D") (progn (let ((magit-display-buffer-function