dotfiles/nixos/hm-modules/emacs/.emacs.d/org/magit.org
2021-01-18 20:24:07 +01:00

1.2 KiB

Magit

  (use-package magit
    :straight t)

Evil Magit

  (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))

Magit Todos

  (use-package magit-todos
    :straight t
    :hook
    (lsp-mode . hl-todo-mode)
    (org-mode . hl-todo-mode))