From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.sources,gmane.emacs.help Subject: Re: Using a Custom Emacs mode Date: Mon, 08 Aug 2005 12:06:10 -0600 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1123525634 17428 80.91.229.2 (8 Aug 2005 18:27:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2005 18:27:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: gnu-emacs-sources-bounces+gnu-gnu-emacs-sources=m.gmane.org@gnu.org Mon Aug 08 20:27:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2CKQ-0005S9-It for gnu-gnu-emacs-sources@m.gmane.org; Mon, 08 Aug 2005 20:26:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2CNR-0004Wv-Pt for gnu-gnu-emacs-sources@m.gmane.org; Mon, 08 Aug 2005 14:29:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E2CMj-0004L8-U4 for gnu-emacs-sources@gnu.org; Mon, 08 Aug 2005 14:28:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E2CMd-0004Hs-C4 for gnu-emacs-sources@gnu.org; Mon, 08 Aug 2005 14:28:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2CMc-0004Dj-W9 for gnu-emacs-sources@gnu.org; Mon, 08 Aug 2005 14:28:43 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E2CKd-0002sX-Mn for gnu-emacs-sources@gnu.org; Mon, 08 Aug 2005 14:26:39 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1E2C4J-0002qt-Ml for gnu-emacs-sources@gnu.org; Mon, 08 Aug 2005 20:09:47 +0200 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Aug 2005 20:09:47 +0200 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Aug 2005 20:09:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: gnu-emacs-sources@gnu.org Original-Followup-To: gmane.emacs.help Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: X-BeenThere: gnu-emacs-sources@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNU Emacs source code postings and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: gnu-emacs-sources-bounces+gnu-gnu-emacs-sources=m.gmane.org@gnu.org Errors-To: gnu-emacs-sources-bounces+gnu-gnu-emacs-sources=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.sources:1527 gmane.emacs.help:28556 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28556 Zach Flynn wrote: > Ok, so I have an emacs mode that I'd like to use but I don't know how to > actually use it in emacs. For some strange reason, I can't find that > explained anywhere. Can someone tell me how to use a mode that's > written for emacs? It's not one of those ones that emacs comes with. Short answer: M-x load-file RET foo.el M-x foo-mode Long answer: You will make things easier on yourself by putting foo.el in the system site-lisp directory (C-h v load-path) or in any directory of your choosing that you add to load-path (by modifying your ~/.emacs file). You will make things run much faster if you M-x byte-compile-file foo.el (before loading it). foo.el will likely contain installation instructions in the comment block near the top of the file, which will suggest autoload commands to add to your system's default.el file or your personal .emacs file (so you don't have to explicitly load it). The installation instructions will also likely show you how to add an entry to auto-mode-alist, to invoke foo-mode automatically when editing files with that mode's conventional name. P.S. Please post questions to gnu.emacs.help in the future; that's where I've directed followups to this message. -- Kevin Rodgers