summaryrefslogtreecommitdiff
path: root/.config/emacs/init.el
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-22 15:35:17 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-22 15:35:40 +0200
commitd75289b4647d917e1d5614ffa52ec87199561a97 (patch)
treec6d3716fc6ba14eb627d2d0c6ae92cc3ea9357f9 /.config/emacs/init.el
parent2ef0e072150251d2cab2f281df03ca880ad9ada6 (diff)
emacs: Bring back magit
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r--.config/emacs/init.el47
1 files changed, 23 insertions, 24 deletions
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"