lang/org: fix C-S-{h,l} in tables

Supposed to create new column on the left and right, respectively.
Instead, always created columns on the right.
This commit is contained in:
Henrik Lissner 2019-04-04 17:15:58 -04:00
parent d3784a0074
commit 3a47c27dd6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -41,13 +41,14 @@ re-align the table if necessary. (Necessary because org-mode has a
(if (org-at-table-p) (org-table-previous-field) (org-beginning-of-line)))
;;;###autoload
(defun +org/table-append-field-or-shift-right ()
(interactive)
(org-shiftmetaright)
(when (org-at-table-p) (org-metaright)))
(defalias '+org/table-append-field-or-shift-right #'org-shiftmetaright)
;;;###autoload
(defun +org/table-prepend-field-or-shift-left ()
"TODO"
(interactive)
(if (org-at-table-p) (org-shiftmetaright) (org-shiftmetaleft)))
(if (org-at-table-p)
(progn
(org-shiftmetaright)
(org-table-move-column-left))
(org-shiftmetaleft)))