Hello, Vladimir Lomov <lomov...@gmail.com> writes:
> This works fine, though at first I thought it would be enough to add > only following code > #+BEGIN_SRC emacs-lisp > (define-key org-src-mode-map [f2] 'org-edit-src-save) > #+END_SRC > into emacs init file. Of course, this don't work and emacs complains about > ~org-src-mode-map~. Only one thing bother me: is it normal to add such > hook into ~org-src-mode-hook~ ? I think so. I also add keybindings through mode hooks. Another way to achieve this it to use `with-eval-after-load'. Regards, -- Nicolas Goaziou