cofi / evil-leader

<leader> key for evil
GNU General Public License v3.0
315 stars 22 forks source link

"Wrong type argument: commandp" in simple mapping #37

Closed zzantares closed 8 years ago

zzantares commented 8 years ago

Hi, I'm using evil-leader for a while now, but now that I want to add this mapping it doesn't work:

(evil-leader/set-key "ls" 'helm-buffer-list)

It gives Wrong type argument: commandp, helm-buffer-list, I don't know why with this particular function just doesn't work, seeing helm-buffer-list definition it doesn't take any arguments.

Could anyone help, why this particular mapping is not working?

oscarfv commented 8 years ago

You can only bind keys to commands, which, roughly speaking, are functions with an interactive specification.

zzantares commented 8 years ago

Thanks, in deed was a dumb mistake of mine, the correct function (the interactive one) to use was helm-buffers-list with an extra s. Now it's working properly, sorry.