diff options
author | Raúl Benencia <id@rbenencia.name> | 2024-10-27 17:13:41 -0700 |
---|---|---|
committer | Raúl Benencia <id@rbenencia.name> | 2024-10-27 17:13:41 -0700 |
commit | d0923610979a2d0abc63c6dd03aa56bbd6fea7ea (patch) | |
tree | a6f6ac908beaa586303109fe277ca491593bb767 /.emacs.d | |
parent | 6414098ae832776e6d213df7ba946da066f9a2df (diff) |
emacs: mv magit.el to package rul-vc
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/init.el | 4 | ||||
-rw-r--r-- | .emacs.d/rul-emacs.org | 4 | ||||
-rw-r--r-- | .emacs.d/rul-lisp/packages/rul-vc.el | 18 |
3 files changed, 20 insertions, 6 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index a7dc51c..8f6fc8f 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -72,9 +72,7 @@ (require 'rul-terminals) (require 'rul-wm) (require 'rul-write) - -;; Init parts (will be deprecated in favor of packages) -(load-file "~/.emacs.d/rul-init.d/magit.el") +(require 'rul-vc) (when-let* ((file (locate-user-emacs-file "rul-post-init.el")) ((file-exists-p file))) diff --git a/.emacs.d/rul-emacs.org b/.emacs.d/rul-emacs.org index 3a83547..e0f9ed5 100644 --- a/.emacs.d/rul-emacs.org +++ b/.emacs.d/rul-emacs.org @@ -188,9 +188,7 @@ Now, I simply start it from Emacs itself. This approach works well for me. (require 'rul-terminals) (require 'rul-wm) (require 'rul-write) - -;; Init parts (will be deprecated in favor of packages) -(load-file "~/.emacs.d/rul-init.d/magit.el") +(require 'rul-vc) (when-let* ((file (locate-user-emacs-file "rul-post-init.el")) ((file-exists-p file))) 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) |