From 81edda78b133511dc2e4f77ab8de4549ea5d581e Mon Sep 17 00:00:00 2001 From: Riyyi Date: Mon, 22 Aug 2022 02:47:47 +0200 Subject: [PATCH] Emacs: Improve Org mode RET at point function for tables --- .config/emacs/config/org-mode.org | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/emacs/config/org-mode.org b/.config/emacs/config/org-mode.org index 2da49a2..c1ab6c5 100644 --- a/.config/emacs/config/org-mode.org +++ b/.config/emacs/config/org-mode.org @@ -147,12 +147,14 @@ Org latex exporter. If point is on: checkbox -- toggle it link -- follow it + table -- go to next row otherwise -- run the default (evil-ret) expression" (interactive) (let ((type (org-element-type (org-element-context)))) (pcase type ('link (if org-return-follows-link (org-open-at-point) (evil-ret))) ((guard (org-at-item-checkbox-p)) (org-toggle-checkbox)) + ('table-cell (org-table-next-row)) (_ (evil-ret)) )))) #+END_SRC