From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: Another 'best' practices question ?? Date: 4 May 2007 09:36:27 -0700 Organization: http://groups.google.com Message-ID: <1178296587.165223.59960@y80g2000hsf.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1178300024 18002 80.91.229.12 (4 May 2007 17:33:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 May 2007 17:33:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 04 19:33:42 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hk1f4-0003jH-4e for geh-help-gnu-emacs@m.gmane.org; Fri, 04 May 2007 19:33:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hk1li-0005n2-Gb for geh-help-gnu-emacs@m.gmane.org; Fri, 04 May 2007 13:40:34 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!y80g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 213.94.228.210 Original-X-Trace: posting.google.com 1178296587 25810 127.0.0.1 (4 May 2007 16:36:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 4 May 2007 16:36:27 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 EMF3ASPROXY03 Complaints-To: groups-abuse@google.com Injection-Info: y80g2000hsf.googlegroups.com; posting-host=213.94.228.210; posting-account=hWoAPxMAAAAnBKSBz1ZivwUPPjEuve7bvVCHZQ8rhrluPfwcBJd92w Original-Xref: shelby.stanford.edu gnu.emacs.help:148075 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:43679 Archived-At: On May 3, 6:47 pm, William Case wrote: > Should I create a new directory in "/usr/share/emacs/22.0.95/lisp" or > add the file to an existing directory? I tried to include it with the > XHTML-mode but I could find specific XHTML, HTML or PHP mode files or > directories to include it with. Is that a good idea or not? The normal procedures is to keep the regular Emacs separate from your customizations of it. So, usually you put modes that you have downloaded from elsewhere somewhere out of the way of the normal Emacs tree. This allows you to upgrade Emacs more simply. The normal place to put these modes is in "site-lisp". There are two "site-lisp" directories, one in /usr/share/emacs/site-lisp is intended for things that can work on many versions of emacs. The one in /usr/share/emacs/ 22.0.95/site-lisp is intended for things that are there for the benefit of that particular version of Emacs. A simple mode consisting of a single .el file I would put straight into the site-lisp directory. If the mode consists of many files that would make reading the directory confusing then I'd make a new directory just to put the mode in. Then add that dir to the load-path in .emacs. Or, add a line into .emacs to load the main file of the mode directly rather than relying on the load-path. There are no hard-and-fast rules.