From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: Installing matlab mode under Windows XP Date: Mon, 20 Nov 2006 14:50:24 -0600 Message-ID: <3B6E0242-6B81-42EB-8F6E-EA8363181310@easesoftware.com> References: <20782381.840281164032448425.JavaMail.webmail@ps7zhb.bluewin.ch> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: multipart/mixed; boundary="===============0674629344==" X-Trace: sea.gmane.org 1164055886 3871 80.91.229.2 (20 Nov 2006 20:51:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Nov 2006 20:51:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 20 21:51:21 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GmG6V-0007Xy-7o for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Nov 2006 21:51:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmG6T-00082u-WD for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Nov 2006 15:50:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmG66-0007vd-6X for help-gnu-emacs@gnu.org; Mon, 20 Nov 2006 15:50:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GmG64-0007tl-Tl for help-gnu-emacs@gnu.org; Mon, 20 Nov 2006 15:50:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmG64-0007tF-A8 for help-gnu-emacs@gnu.org; Mon, 20 Nov 2006 15:50:32 -0500 Original-Received: from [64.192.143.210] (helo=easeserver.easesoftware.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GmG63-0008Jz-Oj for help-gnu-emacs@gnu.org; Mon, 20 Nov 2006 15:50:32 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by easeserver.easesoftware.com (Postfix) with ESMTP id B8DCA53116B; Mon, 20 Nov 2006 14:50:29 -0600 (CST) Original-Received: from easeserver.easesoftware.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03193-06; Mon, 20 Nov 2006 14:50:25 -0600 (CST) Original-Received: from [64.192.143.210] (easeserver.easesoftware.com [64.192.143.210]) by easeserver.easesoftware.com (Postfix) with ESMTP id BDDDE53113B; Mon, 20 Nov 2006 14:50:25 -0600 (CST) In-Reply-To: <20782381.840281164032448425.JavaMail.webmail@ps7zhb.bluewin.ch> Original-To: schnurpfelkamel@bluewin.ch X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: by amavisd-new at easesoftware.net 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:38846 Archived-At: --===============0674629344== Content-Type: multipart/alternative; boundary=Apple-Mail-6-1065030924 --Apple-Mail-6-1065030924 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Nov 20, 2006, at 8:20 AM, schnurpfelkamel@bluewin.ch wrote: > Hi > > I would like to install other packages like Matlab mode for emacs > on Windows XP. Where do I have to put these additional package files? > Is there something like the .emacs file under UNIX that tells emacs > to load these packages? Or in other words: What do I need to do, to > make emacs load the additional package files? First, there an emacs variable called load-path. It is a list of directories emacs searches when a load is done. What I do myself is I have all my emacs lisp in a directory called emacs. Then in my .emacs file I do: (setq load-path (append load-path (list "~/emacs"))) If you keep things in separate sub directories, then the list will be the list of all the places emacs needs to look in. I believe there is a slicker way to do this. Second, most packages come with some instructions. You generally do not want to always load all of the contents of all of the packages. Usually, there are some key functions that are always called first. You set these in autoload statements. A typical statement looks like: (autoload 'vm "vm" "Start VM on your primary inbox." t) The package will usually tell you want autoload statements to put in your .emacs file. I can't think of what else you need to know. Hopefully, this will get your started. I don't know where the .emacs file is located on XP. This is from the Info page: On MS-DOS, file names are case-insensitive and limited to eight characters, plus optionally a period and three more characters. Emacs knows enough about these limitations to handle file names that were meant for other operating systems. For instance, leading dots `.' in file names are invalid in MS-DOS, so Emacs transparently converts them to underscores `_'; thus your default init file (*note Init File::) is called `_emacs' on MS-DOS. Excess characters before or after the period are generally ignored by MS-DOS itself; thus, if you visit the file `LongFileName.EvenLongerExtension', you will silently get `longfile.eve', but Emacs will still display the long file name on the mode line. Other than that, it's up to you to specify file names which are valid under MS-DOS; the transparent conversion as described above only works on file names built into Emacs. `HOME' The location of the user's files in the directory tree; used for expansion of file names starting with a tilde (`~'). On MS-DOS, it defaults to the directory from which Emacs was started, with `/bin' removed from the end if it was present. On Windows, the default value of `HOME' is the `Application Data' subdirectory of the user profile directory (normally, this is `C:/Documents and Settings/USERNAME/Application Data', where USERNAME is your user name), though for backwards compatibility `C:/' will be used instead if a `.emacs' file is found there. Good luck, Perry Smith ( pedz@easesoftware.com ) Ease Software, Inc. ( http://www.easesoftware.com ) Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems --Apple-Mail-6-1065030924 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
On Nov 20, 2006, at = 8:20 AM, schnurpfelkamel@bluewin.ch = wrote:

Hi

I would like = to install other packages like Matlab mode for emacs=A0
on = Windows XP. Where do I have to put these additional package files?=A0
Is there = something like the .emacs file under UNIX that tells emacs=A0
to load = these packages? Or in other words: What do I need to do, to=A0
make = emacs load the additional package = files?

First, there an emacs = variable called load-path.=A0 It is a list of directories emacs searches = when a load is done.=A0 What I do myself is I have all my emacs lisp in = a directory called emacs.=A0 Then in my .emacs file I do:

(setq load-path (append = load-path (list "~/emacs")))

If you keep things in = separate sub directories, then the list will be the list of all the = places emacs needs to look in.

I believe there is a = slicker way to do this.

Second, most packages come = with some instructions.=A0 You generally do not want to always load all = of the contents of all of the packages.=A0 Usually, there are some key = functions that are always called first.=A0 You set these in autoload = statements.=A0 A typical statement looks like:

(autoload 'vm "vm" "Start = VM on your primary inbox." t)

The package will usually = tell you want autoload statements to put in your .emacs = file.

I can't think = of what else you need to know.=A0 Hopefully, this will get your = started.

I = don't know where the .emacs file is located on XP.=A0 This is from the = Info page:

=A0 = =A0On MS-DOS, file names are case-insensitive and limited to = eight
characters, plus optionally a period and three more = characters.=A0 Emacs
knows enough about these limitations to = handle file names that were
meant for other operating = systems.=A0 For instance, leading dots `.' in
file names are = invalid in MS-DOS, so Emacs transparently converts them
to = underscores `_'; thus your default init file (*note Init File::) = is
called `_emacs' on MS-DOS.=A0 Excess characters before or = after the
period are generally ignored by MS-DOS itself; thus, = if you visit the
file `LongFileName.EvenLongerExtension', you = will silently get
`longfile.eve', but Emacs will still display = the long file name on the
mode line.=A0 Other than that, it's = up to you to specify file names which
are valid under MS-DOS; = the transparent conversion as described above
only works on = file names built into Emacs.

`HOME'
=A0 =A0=A0 = The location of the user's files in the directory tree; used = for
=A0 =A0=A0 expansion of file names starting with a tilde = (`~').=A0 On MS-DOS,
=A0 =A0=A0 it defaults to the directory = from which Emacs was started, with
=A0 =A0=A0 `/bin' removed = from the end if it was present.=A0 On Windows, the
=A0 =A0=A0 = default value of `HOME' is the `Application Data' subdirectory = of
=A0 =A0=A0 the user profile directory (normally, this is = `C:/Documents and
=A0 =A0=A0 Settings/USERNAME/Application = Data', where USERNAME is your user
=A0 =A0=A0 name), though = for backwards compatibility `C:/' will be used
=A0 =A0=A0 = instead if a `.emacs' file is found there.

Good luck,
Perry = Smith (=A0pedz@easesoftware.com = )
Ease Software, Inc. (=A0http://www.easesoftware.com = )

Low = cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems

=

= --Apple-Mail-6-1065030924-- --===============0674629344== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0674629344==--