all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sebastian Tennant <sebyte@smolny.plus.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Another 'best' practices question ??
Date: Fri, 04 May 2007 21:24:03 +0300	[thread overview]
Message-ID: <87ejlw1m7w.fsf@moley.org> (raw)
In-Reply-To: 1178296587.165223.59960@y80g2000hsf.googlegroups.com

Quoth Robert Thorpe <rthorpe@realworldtech.com>:
> 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.

There's a reason these directories contain the word 'site', namely
that whatever is found in them is availble site-wide, i.e, to all the
users of your machine.  Consequently adding files to these directories
requires root privileges.

If what you want to 'install' is just for your own personal use then
create a ~/elisp directory, put the source files there, and add
~/.elisp to your load-path.

> 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.

Indeed, there are not.  But it's always possible to do the right
thing, or the wrong one ;-)

Sebastian

P.S. Apologies if I'm missing the point, having not read the thread
     from the beginning.

  reply	other threads:[~2007-05-04 18:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.183.1178214842.32220.help-gnu-emacs@gnu.org>
2007-05-04 16:36 ` Another 'best' practices question ?? Robert Thorpe
2007-05-04 18:24   ` Sebastian Tennant [this message]
2007-05-04 19:58   ` William Case
     [not found]   ` <mailman.256.1178309153.32220.help-gnu-emacs@gnu.org>
2007-05-08 13:40     ` Robert Thorpe
2007-05-03 17:47 William Case
2007-05-03 17:59 ` Lennart Borgman (gmail)
2007-05-03 19:35   ` William Case
2007-05-03 20:27     ` Lennart Borgman (gmail)
2007-05-04  6:12     ` Christian Herenz
2007-05-04 14:18       ` Tom Tromey
2007-05-04 15:23         ` Sebastian Tennant
2007-05-04 17:04           ` Tom Tromey
2007-05-04 17:21             ` Tom Tromey
2007-05-04 18:46               ` Sebastian Tennant
2007-05-04 18:41                 ` Tom Tromey
2007-05-04 19:34                   ` Sebastian Tennant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ejlw1m7w.fsf@moley.org \
    --to=sebyte@smolny.plus.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.