From 9b76627ee0aca12a45749bdf496d3bb09e1f8fcb Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 12 Feb 2018 23:18:38 -0500 Subject: [PATCH] lang/org: do org-try-structure-completion on TAB #417 --- modules/lang/org/autoload/org.el | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/modules/lang/org/autoload/org.el b/modules/lang/org/autoload/org.el index 10d1c55e1..c15c2558c 100644 --- a/modules/lang/org/autoload/org.el +++ b/modules/lang/org/autoload/org.el @@ -130,14 +130,15 @@ If on a: "Depending on the context either a) indent the current line, b) go the next table field or c) run `yas-expand'." (interactive) - (call-interactively - (cond ((and (bound-and-true-p yas-minor-mode) - (yas--templates-for-key-at-point)) - #'yas-expand) - ((org-at-table-p) - #'org-table-next-field) - (t - #'+org/indent)))) + (or (org-try-structure-completion) + (call-interactively + (cond ((and (bound-and-true-p yas-minor-mode) + (yas--templates-for-key-at-point)) + #'yas-expand) + ((org-at-table-p) + #'org-table-next-field) + (t + #'+org/indent))))) ;;;###autoload (defun +org/dedent ()