aboutsummaryrefslogtreecommitdiff
path: root/.emacs.local.d/modes/magit.el
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2019-06-23 11:43:30 -0700
committerRaúl Benencia <rul@kalgan.cc>2019-06-23 13:32:01 -0700
commit284c8327c95bb0c71b111ebf95723a35a478295c (patch)
treefaea9db4b1bba00d73d33b2065ed102f88b76b2c /.emacs.local.d/modes/magit.el
Add emacs config
Diffstat (limited to '.emacs.local.d/modes/magit.el')
-rw-r--r--.emacs.local.d/modes/magit.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/.emacs.local.d/modes/magit.el b/.emacs.local.d/modes/magit.el
new file mode 100644
index 0000000..e1ca63f
--- /dev/null
+++ b/.emacs.local.d/modes/magit.el
@@ -0,0 +1,15 @@
+;; Debian packages: elpa-magit elpa-magithub
+
+(use-package magit
+ :ensure t
+ :defer t
+ :bind (("C-x g" . magit-status))
+ :config
+ (progn
+ (defun inkel/magit-log-edit-mode-hook ()
+ (flyspell-mode t)
+ (turn-on-auto-fill))
+ (defadvice magit-status (around magit-fullscreen activate)
+ (window-configuration-to-register :magit-fullscreen)
+ ad-do-it
+ (delete-other-windows))))
nihil fit ex nihilo