Barry Margolin writes: > In article , > Sharon Kimble wrote: > >> --8<---------------cut here---------------start------------->8--- >> #+begin_src emacs-lisp >> (defun qdot/clear-kill-ring () >> "Clear the kill ring variable" >> (setq kill-ring nil)) >> (global-set-key (kbd "s-/") 'qdot/clear-kill-ring) >> #+end_src >> --8<---------------cut here---------------end--------------->8--- >> >> However when I do "s-/" emacs replied with >> >> ¢~¢w¢w¢w¢w >> ¢x(wrong-type-argument commandp qdot/clear-kill-ring) in >> ad-Advice-call-interactively >> ¢¢¢w¢w¢w¢w >> >> So what should I have in my function please to get it working properly? > > You forgot to put (interactive) in qdot/clear-kill-ring, to indicate > that it's a command, not just an ordinary function. You mean like - ╭──── │(defun qdot/clear-kill-ring (interactive) ╰──── I'm not sure what you mean or how to show it. Is that what you meant? Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk Debian 8.0, fluxbox 1.3.7, emacs 24.5.1