Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
You can use backticks to run elisp code in snippets. Here's a full example snippet which works for me:
# -*- mode: snippet; require-final-newline: nil -*- # name: yank # key: yank # -- [[${1:`(clipboardcurrent-yankkill 0)`}][$0]]
# -*- mode: snippet; require-final-newline: nil -*- # name: yank # key: yank # -- [[${1:`(clipboard-yank)`}][$0]]
# -*- mode: snippet; require-final-newline: nil -*- # name: yank # key: yank # -- [[${1:`(current-kill 0)`}][$0]]
You can use backticks to run elisp code in snippets, so try this. Here's a full example snippet which works for me:
[[$1# -*- mode: snippet; require-final-newline: nil -*- # name: yank # key: yank # -- [[${1:`(clipboard-yank)`][$0]]`}][$0]]
You can use backticks to run elisp code in snippets, so try this:
[[$1:`(clipboard-yank)`][$0]]