mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
refactor(org): remove +org-fix-newline-and-indent-in-src-blocks-a
Our rebinding of RET to +org/return in insert mode, already accompolishes was this advice sets out to do.
This commit is contained in:
parent
41876aa036
commit
13ffb0fed3
1 changed files with 0 additions and 10 deletions
|
|
@ -253,16 +253,6 @@ Also adds support for a `:sync' parameter to override `:async'."
|
|||
(funcall orig-fn arg info params)
|
||||
(funcall fn orig-fn arg info params)))))
|
||||
|
||||
(defadvice! +org-fix-newline-and-indent-in-src-blocks-a (&optional indent _arg _interactive)
|
||||
"Mimic `newline-and-indent' in src blocks w/ lang-appropriate indentation."
|
||||
:after #'org-return
|
||||
(when (and indent
|
||||
org-src-tab-acts-natively
|
||||
(org-in-src-block-p t))
|
||||
(save-window-excursion
|
||||
(org-babel-do-in-edit-buffer
|
||||
(call-interactively #'indent-for-tab-command)))))
|
||||
|
||||
(defadvice! +org-inhibit-mode-hooks-a (fn datum name &optional initialize &rest args)
|
||||
"Prevent potentially expensive mode hooks in `org-babel-do-in-edit-buffer' ops."
|
||||
:around #'org-src--edit-element
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue