1

I would like the org capture buffer (which IIUC is in org-capture-mode, a minor mode) to start in insert state; It seems that both the evil-insert-state-modes variable and the evil-set-initial-state function operate over major modes (or at least, when I run org-capture after modifying the former or calling the latter, the buffer that opens up does not start in insert state).

Does anyone ahve any suggestions?

  • The library org-capture.el has an org-capture-mode-hook -- so you would just do the standard thing we do for all other hooks. Something like this -- (defun my-org-capture-load-fn () [INSERT EVIL STUFF HERE]) (eval-after-load "org-capture" '(progn (add-hook 'org-capture-mode-hook 'my-org-capture-load-fn) )) I've never played with evil-mode, so I cannot help you with the specific line for enabling the feature you seek. – lawlist Apr 17 '15 at 5:16
  • (add-hook 'org-capture-mode-hook 'evil-insert-state) seems to work. If you want to write up an answer, I'll accept it. – Alex R Apr 17 '15 at 14:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.