From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: leonel.gayard@gmail.com Newsgroups: gmane.emacs.help Subject: How do I make an Emacs-Lisp function available via M-x ? Date: 29 Nov 2006 03:58:12 -0800 Organization: http://groups.google.com Message-ID: <1164801492.467233.260780@l12g2000cwl.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1164804035 27834 80.91.229.2 (29 Nov 2006 12:40:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Nov 2006 12:40:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 29 13:40:33 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GpOje-0004CP-6q for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Nov 2006 13:40:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpOjd-0000iQ-Q1 for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Nov 2006 07:40:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!l12g2000cwl.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: 143.106.7.165 Original-X-Trace: posting.google.com 1164801497 8493 127.0.0.1 (29 Nov 2006 11:58:17 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 29 Nov 2006 11:58:17 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061108 Fedora/1.5.0.8-1.fc5 Firefox/1.5.0.8,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 emilia.lsd.ic.unicamp.br:3128 (squid/2.5.STABLE14) Complaints-To: groups-abuse@google.com Injection-Info: l12g2000cwl.googlegroups.com; posting-host=143.106.7.165; posting-account=lJkzEg0AAACbkYMjd2aZXa5SI7ItVhvB Original-Xref: shelby.stanford.edu gnu.emacs.help:143488 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39089 Archived-At: 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