Don't move cursor when realigning org tables

This commit is contained in:
Henrik Lissner 2017-05-19 13:10:14 +02:00
parent abe9f06350
commit 4cd56b46cc

View File

@ -70,7 +70,8 @@
(defun +org|realign-table-maybe ()
"Auto-align table under cursor."
(when (org-at-table-p)
(org-table-align)))
(save-excursion
(org-table-align))))
(add-hook 'evil-insert-state-exit-hook #'+org|realign-table-maybe nil t)
(defun +org|update-cookies ()