Hello, Vladimir Lomov <lomov...@gmail.com> writes:
> Correct me if I understand you wrong, but you suggest to bind ~F2~ key > to ~org-edit-src-save~. But then this will work only in Org buffer, and > how about LaTeX mode then. Or I should bind ~F2~ to something like that: > (global-set-key [f2] > (if (functionp org-edit-src-save) org-edit-src-save save-buffer)) Actually, I meant to bind F2 to `org-edit-src-save' in `org-src-mode-map'. > On second thought, I considered org-src buffer as auxiliary buffer, > depending on (main) Org document buffer, so saving org-src buffer should > save Org document buffer. This is the case already with C-x C-s, not for `save-buffer'. Regards, -- Nicolas Goaziou