refactor(org): remove unused hooks
These hooks had the potential to be too expensive (in larger Org files) to be enabled by default.
This commit is contained in:
parent
f6e65c4010
commit
cc358a60c4
3 changed files with 1 additions and 20 deletions
|
@ -53,15 +53,6 @@ re-align the table if necessary. (Necessary because org-mode has a
|
|||
(if org-table-may-need-update (org-table-align))
|
||||
(goto-char pt))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +org-enable-auto-reformat-tables-h ()
|
||||
"Realign tables & update formulas when exiting insert mode (`evil-mode').
|
||||
Meant for `org-mode-hook'."
|
||||
(when (featurep 'evil)
|
||||
(add-hook 'evil-insert-state-exit-hook #'+org-realign-table-maybe-h nil t)
|
||||
(add-hook 'evil-replace-state-exit-hook #'+org-realign-table-maybe-h nil t)
|
||||
(advice-add #'evil-replace :after #'+org-realign-table-maybe-a)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +org-delete-backward-char-and-realign-table-maybe-h ()
|
||||
"Ensure deleting characters with backspace doesn't deform the table cell."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue