unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How do I make an Emacs-Lisp function available via M-x ?
@ 2006-11-29 11:58 leonel.gayard
  2006-11-29 12:21 ` Le TeXnicien de Surface
  2006-11-29 14:18 ` Perry Smith
  0 siblings, 2 replies; 3+ messages in thread
From: leonel.gayard @ 2006-11-29 11:58 UTC (permalink / raw)


Hi all,

I've recently started to add some Lisp functions to my .emacs file. For
instance, these two functions change the colors in Emacs, with white
fonts over black background or vice-versa:

;;;###autoload
(defun black-on-white()
    (and
         (set-foreground-color "black")
         (set-background-color "white")))

;;;###autoload
(defun white-on-black()
    (and
         (set-foreground-color "white")
         (set-background-color "black")))

Now, I would like to call these functions by typing M-x white-on-black,
but they simply are not available there. The apropos command (M-x
apropos) acknowledges that they exist, but when I type M-x
black-on-white, all I get is "no match".

Any ideas ?

[]'s
Leonel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-29 14:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-29 11:58 How do I make an Emacs-Lisp function available via M-x ? leonel.gayard
2006-11-29 12:21 ` Le TeXnicien de Surface
2006-11-29 14:18 ` Perry Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).