Somelauw / evil-org-mode

Supplemental evil-mode keybindings to emacs org-mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the example setup configuration cannot work in org-agenda (org-agenda won't become motion state)

milanglacier opened this issue · comments

To be specific, the example configuration in the README cannot set the evil state of org-agenda to motion state, instead, org-agenda will be kept in emacs state. (despite those keys are set in motion state though)

(use-package evil-org
  :ensure t
  :after org
  :hook (org-mode . (lambda () evil-org-mode))
  :config
  (require 'evil-org-agenda)
  (evil-org-agenda-set-keys))

I change the configuration example to make the org-agenda default state as motion.

(use-package org
  :ensure nil
  :config
  (evil-set-initial-state 'org-agenda-mode 'motion))

(use-package evil-org-agenda
  :ensure nil
  :after org-agenda
  :config
  (evil-org-agenda-set-keys))