From d75289b4647d917e1d5614ffa52ec87199561a97 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 22 Sep 2024 15:35:17 +0200 Subject: emacs: Bring back magit --- .config/emacs/init.el | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) (limited to '.config') diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 2aab31e..7cddded 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -392,28 +392,27 @@ mode requires settings additional variables, those should be listed in (x-set-indentation-settings) ;;; Git Integration -(x-comment - (use-package magit - :custom - (magit-display-buffer-function - #'magit-display-buffer-same-window-except-diff-v1))) - -(x-comment - (use-package magit-todos - :after magit - :init (magit-todos-mode) - :custom - (magit-todos-exclude-globs '(".git/" "vendor/")))) - -(x-comment - (defun x-magit-status () - (interactive) - (thread-last - (project-current t) - (project-root) - (magit-status))) +(use-package magit + :custom + (magit-display-buffer-function + #'magit-display-buffer-same-window-except-diff-v1)) + +(use-package magit-todos + :after magit + :init (magit-todos-mode) + :custom + (magit-todos-exclude-globs '(".git/" "vendor/"))) - (require 'project) +(defun x-magit-status () + (interactive) + (thread-last + (project-current t) + (project-root) + (magit-status))) + +(use-package project + :ensure nil + :custom (add-to-list 'project-switch-commands '(x-magit-status "Git status" ?g))) ;;; Tree-Sitter @@ -887,9 +886,9 @@ the comparison of the ‘company-pseudo-tooltip-overlay’ height and 0 using PR ("a" x-evil-align-regexp) ("s" x-evil-sort-lines) - ;; :normal - ;; :prefix "g" - ;; ("g" magit-status) + :normal + :prefix "g" + ("s" magit-status) :normal :prefix "h" -- cgit v1.2.3