Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Org-mode capture and Evil - go into insert mode automatically

I'm using org-mode capture to create small notes and todos. I'm also using evil-mode.

What I'd love to do is to automatically go into insert-mode when I go into a capture. I've tried adding a hook to org-capture-mode-hook and running (evil-insert) in the hook, but that doesn't work. Is there anything else I can try?

Thanks!

Simon

like image 772
bbbscarter Avatar asked Jun 25 '13 12:06

bbbscarter


2 Answers

(add-hook 'org-capture-mode-hook 'evil-insert-state)
like image 122
abesto Avatar answered Nov 16 '22 22:11

abesto


You can try

(evil-set-initial-state 'org-capture-mode 'insert)
like image 39
tungd Avatar answered Nov 16 '22 21:11

tungd