Emacs: Improve Org mode RET at point function for tables
This commit is contained in:
@@ -147,12 +147,14 @@ Org latex exporter.
|
|||||||
If point is on:
|
If point is on:
|
||||||
checkbox -- toggle it
|
checkbox -- toggle it
|
||||||
link -- follow it
|
link -- follow it
|
||||||
|
table -- go to next row
|
||||||
otherwise -- run the default (evil-ret) expression"
|
otherwise -- run the default (evil-ret) expression"
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((type (org-element-type (org-element-context))))
|
(let ((type (org-element-type (org-element-context))))
|
||||||
(pcase type
|
(pcase type
|
||||||
('link (if org-return-follows-link (org-open-at-point) (evil-ret)))
|
('link (if org-return-follows-link (org-open-at-point) (evil-ret)))
|
||||||
((guard (org-at-item-checkbox-p)) (org-toggle-checkbox))
|
((guard (org-at-item-checkbox-p)) (org-toggle-checkbox))
|
||||||
|
('table-cell (org-table-next-row))
|
||||||
(_ (evil-ret))
|
(_ (evil-ret))
|
||||||
))))
|
))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|||||||
Reference in New Issue
Block a user