14 Jan
2012
14 Jan
'12
12:35 a.m.
I was trying to get finer-grained control over which states buffers start up in. I defined something like (defun my-switch-to-emacs-state-hook () (if evil-mode (evil-emacs-state))) (add-hook 'org-src-mode-hook 'my-switch-to-emacs-state-hook) The hook runs, but the state switch doesn't take place. On the other hand, if I evaluate (my-switch-to-emacs-state-hook) in the buffer, the switch takes place. Can anyone shed light on why that might be happening? --Leo