fix(org): respect org-table-automatic-realign

Co-authored-by: efim <efim.nefedov@nordigy.ru>
This commit is contained in:
efim 2022-08-12 19:03:39 +00:00 committed by GitHub
parent eb65ef169b
commit 02bb28dc82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ re-align the table if necessary. (Necessary because org-mode has a
;;;###autoload
(defun +org-realign-table-maybe-h ()
"Auto-align table under cursor."
(when (and (org-at-table-p) org-table-may-need-update)
(when (and org-table-automatic-realign (org-at-table-p) org-table-may-need-update)
(let ((pt (point))
(inhibit-message t))
(if org-table-may-need-update (org-table-align))