From d9377d01d597f930923850f0bf3a1a68a4d34fa6 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sat, 19 Dec 2020 12:40:06 -0600 Subject: emacs: add magit shortcut --- emacs/.emacs.d/init.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'emacs/.emacs.d/init.el') diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 1e8cd33..f36cc23 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -2,7 +2,7 @@ (defun load-if-exists (filename) (when (file-exists-p filename) (load-file filename))) -(defun bab/disable-line-numbers (&optional dummy) +(defun bab/disable-line-numbers (&optional dummy dummy2) (display-line-numbers-mode -1)) (defun bab/sidebar-toggle () @@ -96,6 +96,15 @@ :config (counsel-projectile-mode 1) :after (ivy projectile)) +;; --- GIT INTEGRATION --- +(use-package magit + :commands + (magit-status) + :bind + (("" . magit-status)) + :hook + (magit-status-mode . bab/disable-line-numbers)) + ;; --- TABS --- (use-package all-the-icons) (use-package centaur-tabs -- cgit v1.2.3