Skip to main content
Improved answer based on @npostavs comment
Source Link

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]] 

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:`(clipboard-yank)`}][$0]] 

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:`(current-kill 0)`}][$0]] 
added 141 characters in body
Source Link

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]] 

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:`(clipboard-yank)`}][$0]] 
Source Link

You can use backticks to run elisp code in snippets, so try this:

[[$1:`(clipboard-yank)`][$0]]