polymode / poly-org

Polymode for org-mode
57 stars 12 forks source link

Respect `:lexical t` in elisp src blocks #44

Open akater opened 2 years ago

akater commented 2 years ago

Often, it is preferrable to eval-defun (C-M-x) with point inside the src block rather than move point to the src block boundary and org-ctrl-c-ctrl-c (C-c C-c). However, currently eval-defun in the indirect buffer does not respect lexical-binding which makes eval-defun unusable e.g. whenever closures are used. The patch conveys the :lexical t src block parameter in blocks with mode derived from emacs-lisp-mode.