Somelauw / evil-org-mode

Supplemental evil-mode keybindings to emacs org-mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gh, gj, gk, gl, M-h, M-j, M-k, and M-l are not available in an org buffer.

crocket opened this issue · comments

Until I enter insert mode or press C-h c M-h, those keystrokes are not available in an org buffer.

My evil-org configuration

(use-package evil-org
  :ensure t
  :after (org evil)
  :config
  (add-hook 'org-mode-hook 'evil-org-mode)
  (add-hook 'evil-org-mode-hook
            (lambda ()
              (evil-org-set-key-theme)))
  (add-hook 'org-mode-hook
            (lambda ()
              (define-key evil-normal-state-local-map
                (kbd "TAB") (kbd "<tab>"))))
  (add-hook 'org-agenda-mode-hook
            (lambda ()
              (dolist (kv (list
                           (list (kbd "TAB") (kbd "<tab>"))
                           (list (kbd "RET") (kbd "<return>"))
                           (list (kbd "M-RET") (kbd "M-<return>"))
                           '("\M-S" org-save-all-org-buffers)
                           '("\M-F" org-agenda-follow-mode)))
                (define-key evil-motion-state-local-map
                  (car kv) (car (cdr kv))))))
  (require 'evil-org-agenda)
  (evil-org-agenda-set-keys))

Is this the same issue as #62?

I'm not totally sure. Ask kirkins whether entering insert mode or pressing C-h c M-h works around the issue.

Closing this to open a new issue.