aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/rul-lisp
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2024-10-27 17:13:41 -0700
committerRaúl Benencia <id@rbenencia.name>2024-10-27 17:13:41 -0700
commitd0923610979a2d0abc63c6dd03aa56bbd6fea7ea (patch)
treea6f6ac908beaa586303109fe277ca491593bb767 /.emacs.d/rul-lisp
parent6414098ae832776e6d213df7ba946da066f9a2df (diff)
emacs: mv magit.el to package rul-vc
Diffstat (limited to '.emacs.d/rul-lisp')
-rw-r--r--.emacs.d/rul-lisp/packages/rul-vc.el18
1 files changed, 18 insertions, 0 deletions
diff --git a/.emacs.d/rul-lisp/packages/rul-vc.el b/.emacs.d/rul-lisp/packages/rul-vc.el
new file mode 100644
index 0000000..c57e950
--- /dev/null
+++ b/.emacs.d/rul-lisp/packages/rul-vc.el
@@ -0,0 +1,18 @@
+(use-package magit
+ :ensure t
+ :bind
+ (("C-c g s" . magit-status)
+ ("C-c g b" . magit-blame))
+ :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))))
+
+(add-to-list 'project-switch-commands '(magit-project-status "Magit" "m"))
+
+(provide 'rul-vc)
nihil fit ex nihilo