summaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2020-12-19 12:40:06 -0600
committerBobby Bingham <koorogi@koorogi.info>2021-02-06 10:40:54 -0600
commitd9377d01d597f930923850f0bf3a1a68a4d34fa6 (patch)
treea603c55519dcb155d7e00b2f597686d445b85a57 /emacs/.emacs.d/init.el
parenta49ea59d27c01d9f7978636add98d9a07bac251a (diff)
emacs: add magit shortcut
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r--emacs/.emacs.d/init.el11
1 files changed, 10 insertions, 1 deletions
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
+ (("<f12>" . magit-status))
+ :hook
+ (magit-status-mode . bab/disable-line-numbers))
+
;; --- TABS ---
(use-package all-the-icons)
(use-package centaur-tabs