From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Case Newsgroups: gmane.emacs.help Subject: Re: Another 'best' practices question ?? Date: Fri, 04 May 2007 15:58:58 -0400 Message-ID: <1178308738.17374.68.camel@CASE> References: <1178296587.165223.59960@y80g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1178308754 15865 80.91.229.12 (4 May 2007 19:59:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 May 2007 19:59:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Robert Thorpe Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 04 21:59:12 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 1Hk3vr-0000N0-GJ for geh-help-gnu-emacs@m.gmane.org; Fri, 04 May 2007 21:59:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hk42W-0002Rq-KU for geh-help-gnu-emacs@m.gmane.org; Fri, 04 May 2007 16:06:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hk42J-0002OU-AL for help-gnu-emacs@gnu.org; Fri, 04 May 2007 16:05:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hk42I-0002OF-JB for help-gnu-emacs@gnu.org; Fri, 04 May 2007 16:05:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hk42I-0002OC-FU for help-gnu-emacs@gnu.org; Fri, 04 May 2007 16:05:50 -0400 Original-Received: from smtp100.rog.mail.re2.yahoo.com ([206.190.36.78]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Hk3vc-0004GT-MX for help-gnu-emacs@gnu.org; Fri, 04 May 2007 15:58:56 -0400 Original-Received: (qmail 39941 invoked from network); 4 May 2007 19:58:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:X-YMail-OSG:Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=HvzYGDwZMhN1tw/cr/l/2MqZ8UadoW8jbmgzxB2oHHqQ95DO4aHzVUCdWzi9vpa698C43fior/QPbWjjnuHCW1kei8jvF8s4X8gjPNbQuKqS61CPFOpvJ5fxJJrYScBAQbK6bMpC6kHHr7HQndQPdmTKV7g3/6nJOlBygTVKxx8= ; Original-Received: from unknown (HELO ?192.168.1.4?) (billlinux@rogers.com@74.104.51.86 with plain) by smtp100.rog.mail.re2.yahoo.com with SMTP; 4 May 2007 19:58:56 -0000 X-YMail-OSG: Xpc0r2YVM1lb3sDSXvaVsaC.VvDuw0Fb8ppuov57Rcv2BYzHy1u3FvffqPQwy7b6cw-- In-Reply-To: <1178296587.165223.59960@y80g2000hsf.googlegroups.com> X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) X-detected-kernel: Genre and OS details not recognized. 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:43695 Archived-At: Thanks Robert; This exactly the kind of thing I was looking for. On Fri, 2007-05-04 at 09:36 -0700, Robert Thorpe wrote: [snip] > 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. I gather. However, this question and your answer are seldom mentioned in documentation. They are normally the kind of thing that one picks up from colleagues. But when you are retired, working at home, there are no colleagues to ask. So your explanation is doubly appreciated. I recently went through the SVN manual. One of the things that made it a real learner was the authors took the time to write a "best practises" paragraph or two at the conclusion of major sections. It's a nice way to summarize what has been taught previously and to relieve any concern that a new user might have about looking like an idiot greenhorn the first time they use a program publicly. -- Regards Bill