lang/org: add eval handler
With this, gr and gR will now work in babel blocks to execute a subset of the block (or the whole thing, if you'd like). Results are displayed in a popup buffer (or overlay if :tools (eval +overlay) is enabled).
This commit is contained in:
parent
80e1e8ff9a
commit
8ae0e79918
3 changed files with 31 additions and 10 deletions
|
@ -195,6 +195,8 @@ This forces it to read the background before rendering."
|
|||
|
||||
|
||||
(defun +org-init-babel-h ()
|
||||
(set-eval-handler! 'org-mode #'+org-eval-handler)
|
||||
|
||||
(setq org-src-preserve-indentation t ; use native major-mode indentation
|
||||
org-src-tab-acts-natively t ; we do this ourselves
|
||||
;; You don't need my permission (just be careful, mkay?)
|
||||
|
@ -1009,8 +1011,6 @@ compelling reason, so..."
|
|||
:m "]c" #'org-babel-next-src-block
|
||||
:m "[c" #'org-babel-previous-src-block
|
||||
:n "gQ" #'org-fill-paragraph
|
||||
:n "gr" #'org-ctrl-c-ctrl-c
|
||||
:n "gR" #'org-babel-execute-buffer
|
||||
;; sensible vim-esque folding keybinds
|
||||
:n "za" #'+org/toggle-fold
|
||||
:n "zA" #'org-shifttab
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue