New answers tagged

0

On a more general note, here's an example that sets b to the value of a starting with 0. # -*- mode: snippet -*- # name: test # key: test # -- a = ${1:0} b = ${2:${1:$(if (equal yas-text 0) 0 yas-text)}} c = $0


0

I managed to solve this by simply putting the following in my doom.d/config.el (with-eval-after-load 'yasnippet (defun maybe_notify_snip (snip_str) (if (string= snip_str "0") " " (concat (concat "\nstatic void " (concat snip_str "(void *argPtr)")) &...


Top 50 recent answers are included