-
I would like to bind "TAB" in Any suggestions on how to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
tbdcit
Jun 27, 2024
Replies: 1 comment
-
The following seems to work well. (defun my/tempel-expand-or-jump ()
(interactive)
(if-let ((templates (tempel--templates))
(bounds (tempel--prefix-bounds))
(name (buffer-substring-no-properties
(car bounds) (cdr bounds)))
(sym (intern-soft name))
(template (assq sym templates)))
(tempel-expand template)
(tempel-next 1))) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tbdcit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following seems to work well.