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:
parent
d3784a0074
commit
3a47c27dd6
1 changed files with 7 additions and 6 deletions
|
@ -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)))
|
(if (org-at-table-p) (org-table-previous-field) (org-beginning-of-line)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +org/table-append-field-or-shift-right ()
|
(defalias '+org/table-append-field-or-shift-right #'org-shiftmetaright)
|
||||||
(interactive)
|
|
||||||
(org-shiftmetaright)
|
|
||||||
(when (org-at-table-p) (org-metaright)))
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +org/table-prepend-field-or-shift-left ()
|
(defun +org/table-prepend-field-or-shift-left ()
|
||||||
|
"TODO"
|
||||||
(interactive)
|
(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)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue