lang/org: refactor +org|realign-table-maybe
This commit is contained in:
parent
48f5811e0d
commit
1b9c5befb4
1 changed files with 4 additions and 3 deletions
|
@ -327,9 +327,10 @@ with `org-cycle'). Also:
|
|||
;;;###autoload
|
||||
(defun +org|realign-table-maybe ()
|
||||
"Auto-align table under cursor and re-calculate formulas."
|
||||
(when (org-at-table-p)
|
||||
(save-excursion
|
||||
(quiet! (org-table-recalculate)))))
|
||||
(when (and (org-at-table-p) org-table-may-need-update)
|
||||
(quiet!
|
||||
(org-table-recalculate)
|
||||
(if org-table-may-need-update (org-table-align)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +org|update-cookies ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue