dotfiles/nixos/hm-modules/emacs/.emacs.d/org/magit.org

36 lines
1.2 KiB
Org Mode
Raw Normal View History

* 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