I'm defining a minor-mode not meant to be interactively activated. I'd like to use
define-minor-mode because it's very convenient, but the downside is that it always sets
the mode function as interactive.
Is there a way to make an already-defined command non-interactive?
cider-debug-modeactually. :-) – Malabarba Jun 29 '15 at 12:50define-minor-modewithineasy-mode.el, most specifically at the line of code(interactive (list (or current-prefix-arg 'toggle))). You may wish to consider making a new macro by copyingdefine-minor-modeand calling it something likedefine-non-interactive-minor-mode-- comment out the interactive statement above and implement any other additional modifications that you see fit. – lawlist Jun 29 '15 at 14:04interactivespec, but there apparently is none. You might consider filing an enhancement request:M-x report-emacs-bug. (I was mistaken, I think, because my macroicicle-define-commanddoes accept such an optional arg. There are cases where you use the macro to define a helper function that is then used to define some commands. The helper does all the heavy lifting, and the commands that use it are wrappers that provide different contexts.) – Drew Jun 29 '15 at 15:34