lang/org: do org-try-structure-completion on TAB #417

This commit is contained in:
Henrik Lissner
2018-02-12 23:18:38 -05:00
parent ba19032d29
commit 9b76627ee0

View File

@ -130,14 +130,15 @@ If on a:
"Depending on the context either a) indent the current line, b) go the next "Depending on the context either a) indent the current line, b) go the next
table field or c) run `yas-expand'." table field or c) run `yas-expand'."
(interactive) (interactive)
(call-interactively (or (org-try-structure-completion)
(cond ((and (bound-and-true-p yas-minor-mode) (call-interactively
(yas--templates-for-key-at-point)) (cond ((and (bound-and-true-p yas-minor-mode)
#'yas-expand) (yas--templates-for-key-at-point))
((org-at-table-p) #'yas-expand)
#'org-table-next-field) ((org-at-table-p)
(t #'org-table-next-field)
#'+org/indent)))) (t
#'+org/indent)))))
;;;###autoload ;;;###autoload
(defun +org/dedent () (defun +org/dedent ()