dotfiles/.emacs.d/org/magit.org
2020-11-18 00:51:00 +01:00

27 lines
734 B
Org Mode

* Magit
#+NAME: magit
#+BEGIN_SRC emacs-lisp
(use-package magit
:ensure t)
#+END_SRC
** Evil Magit
*** TODO The keybindings for <hjkl> to <jkl;> are kind of broken..
#+NAME: evil-magit
#+BEGIN_SRC emacs-lisp
(use-package evil-magit
:ensure t
:config
(setq evil-magit-state 'motion)
(evil-define-key evil-magit-state magit-mode-map ";" 'magit-log)
(evil-define-key evil-magit-state magit-mode-map "k" 'evil-previous-line)
(evil-define-key evil-magit-state magit-status-mode-map "l" 'evil-next-line))
#+END_SRC
** Magit Todos
#+NAME: magit-todos
#+BEGIN_SRC emacs-lisp
(use-package magit-todos
:ensure t
:hook (rustic . hl-todo-mode))
#+END_SRC