I have the following snippet:
(setq evil-string-inflection-bind "g~")
(define-key evil-normal-state-map (kbd evil-string-inflection-bind) 'evil-operator-string-inflection)
The above snippet will not work.
Now I know for a fact that this works:
(define-key evil-normal-state-map (kbd "g~") 'evil-operator-string-inflection)
Why the first snippet does not work while the second does? At first look, they should be equal.
Is there a way to pass arguments to the (kdb) function or is it special somehow?
evilspecifically). Exactly what do you mean when you say "The above snippet will not work" ? – phils Aug 18 at 0:13kbdwas a macro in the past, which could account for the problem. DoesC-h f kbdsay that it's a function or a macro? – phils Aug 18 at 0:13evilthen. I've added the tag accordingly, and hopefully someone else who uses it will be better placed to answer this. – phils Aug 18 at 4:26