mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-02 21:16:15 +01:00
36 lines
1.2 KiB
Org Mode
36 lines
1.2 KiB
Org Mode
|
* Magit
|
||
|
#+NAME: magit
|
||
|
#+BEGIN_SRC emacs-lisp
|
||
|
(use-package magit
|
||
|
:straight t)
|
||
|
#+END_SRC
|
||
|
** Evil Magit
|
||
|
#+NAME: evil-magit
|
||
|
#+BEGIN_SRC emacs-lisp
|
||
|
(use-package evil-magit
|
||
|
:straight t
|
||
|
:after (evil magit)
|
||
|
:config
|
||
|
(setq evil-magit-state 'motion)
|
||
|
(evil-define-key 'motion magit-status-mode-map ";" 'magit-log)
|
||
|
(evil-define-key 'motion magit-status-mode-map "k" 'evil-previous-line)
|
||
|
(evil-define-key 'motion magit-status-mode-map "l" 'evil-next-line)
|
||
|
(evil-define-key 'normal magit-status-mode-map "l" 'evil-next-line)
|
||
|
(evil-define-key 'visual magit-status-mode-map "l" 'evil-next-line)
|
||
|
|
||
|
(evil-define-key 'motion magit-log-mode-map ";" 'magit-log)
|
||
|
(evil-define-key 'motion magit-log-mode-map "k" 'evil-previous-line)
|
||
|
(evil-define-key 'motion magit-log-mode-map "l" 'evil-next-line)
|
||
|
(evil-define-key 'normal magit-log-mode-map "l" 'evil-next-line)
|
||
|
(evil-define-key 'visual magit-log-mode-map "l" 'evil-next-line))
|
||
|
#+END_SRC
|
||
|
** Magit Todos
|
||
|
#+NAME: magit-todos
|
||
|
#+BEGIN_SRC emacs-lisp
|
||
|
(use-package magit-todos
|
||
|
:straight t
|
||
|
:hook
|
||
|
(lsp-mode . hl-todo-mode)
|
||
|
(org-mode . hl-todo-mode))
|
||
|
#+END_SRC
|