From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Sean Richards" Newsgroups: gmane.emacs.help Subject: Re: emacs calculator Date: Tue, 18 Jan 2005 20:09:15 +1300 Organization: Xtra Message-ID: <87mzv7mcx0.fsf@hugin.valhalla.net> References: <10uj7k64bp0tr43@corp.supernews.com> <10up1br2sv9c4aa@corp.supernews.com> Reply-To: sean_news@myrealbox.com NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1106032085 9026 80.91.229.6 (18 Jan 2005 07:08:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Jan 2005 07:08:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 18 08:07:59 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CqnT4-0001uH-00 for ; Tue, 18 Jan 2005 08:07:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cqnex-0000ZQ-Uw for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Jan 2005 02:20:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!news.xtra.co.nz!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:OFMLbVtHUPIscQrSwtr0KnFSx54= Original-Lines: 52 Original-NNTP-Posting-Host: 203.96.101.242 Original-X-Complaints-To: abuse@xtra.co.nz Original-X-Trace: news.xtra.co.nz 1106031916 203.96.101.242 (Tue, 18 Jan 2005 20:05:16 NZDT) Original-NNTP-Posting-Date: Tue, 18 Jan 2005 20:05:16 NZDT Original-Xref: shelby.stanford.edu gnu.emacs.help:127960 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: main.gmane.org gmane.emacs.help:23448 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23448 "B.T. Raven" writes: > Thanks, Sean and Peter and Stefan. I didn't know that 'calculator was > being autoloaded from somewhere, so I guess I can remove that line from > my .emacs. It turns out that all of the various ways of binding the > C-return key work just fine. The problem was that I thought .emacs was > being read from site-lisp when in fact it was being read from d:\emacs. > My directory structure in this neck of the woods is > d:emacs\emacs-21.3\bin etc. Since one thing leads to another, my > question now is whether it's possible to force runemacs.exe to look for > .emacs in site-lisp instead of whatever is in HOME (or HOME$ or ~\, > whatever that means). Is there a search path order where .emacs is > looked for? Have a look at the 'Init File' node in Emacs info The Init File, `~/.emacs' ========================= When Emacs is started, it normally loads a Lisp program from the file `.emacs' or `.emacs.el' in your home directory. We call this file your "init file" because it specifies how to initialize Emacs for you. You can use the command line switch `-q' to prevent loading your init file, and `-u' (or `--user') to specify a different user's init file (*note Initial Options::). There can also be a "default init file", which is the library named `default.el', found via the standard search path for libraries. The Emacs distribution contains no such library; your site may create one for local customizations. If this library exists, it is loaded whenever you start Emacs (except when you specify `-q'). But your init file, if any, is loaded first; if it sets `inhibit-default-init' non-`nil', then `default' is not loaded. Your site may also have a "site startup file"; this is named `site-start.el', if it exists. Like `default.el', Emacs finds this file via the standard search path for Lisp libraries. Emacs loads this library before it loads your init file. To inhibit loading of this library, use the option `--no-site-file'. *Note Initial Options::. You can place `default.el' and `site-start.el' in any of the directories which Emacs searches for Lisp libraries. The variable `load-path' (*note Lisp Libraries::) specifies these directories. Many sites put these files in the `site-lisp' subdirectory of the Emacs installation directory, typically `/usr/local/share/emacs/site-lisp'. ... Sean -- "Hver sin smak", sa vintapperen, han drakk mens de andre sloss.