unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Rupert" <rswarbrick@googlemail.com>
Subject: Re: how to get this file to work? (another newbie question)
Date: 26 Dec 2006 09:27:16 -0800	[thread overview]
Message-ID: <1167154036.596593.76310@i12g2000cwa.googlegroups.com> (raw)
In-Reply-To: <1166995315.273408.54940@a3g2000cwd.googlegroups.com>

ocelot1970@gmail.com wrote:
> Everyone was so helpful for my last question!
>
> Here is another: I found a file keywiz.el, at this location:
> http://whome.phys.au.dk/~harder/
>
> What the file is is a game where the player tries to guess the right
> key-binding.
>
> What I want to know is just how to make it work. The instructions for
> the file say to press M-x and then keywiz. When I do that what happens
> is I get a '[no match]' error.
>
> The problem is, I don't know where to store this file to make this
> work. I tried my home folder, and also  the "play" folder within "usr."
> They don't work and this is probably a really basis question, but where
> do I put files like this I get from external sources?

Hi! I feel I should help - the other answers you got are correct, but
you might be looking for something a little more targeted.

When emacs loads, it reads through a load of .el files containing elisp
code. A large proportion of emacs is in fact written in elisp rather
than C, the core programming language. However, emacs needs to know
what files to read, which is controlled by two things:

- It maintains a list of directories in a variable called load-path. To
see this, probably it's easiest to run C-h v load-path (help,about
variable,load-path).
- There is a function called load, which finds a file in one of the
directories in load-path and then reads everything in it.
- Files loaded by emacs have lots of invocations of load, which then
load a sort of tree of dependent files.

The easiest thing for now is to add a "load" invocation in your .emacs
file and put the file you want to load in your site-lisp directory.
Eventually, things will get very slow unless you factor them out with
autoloading etc., but maybe that's for when you're a little more
confident with elisp in general.

Hope this is of some use,

Rupert

      parent reply	other threads:[~2006-12-26 17:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-24 21:21 how to get this file to work? (another newbie question) ocelot1970
2006-12-24 22:25 ` Peter Dyballa
     [not found] ` <mailman.2334.1166999141.2155.help-gnu-emacs@gnu.org>
2006-12-25  1:39   ` ocelot1970
2006-12-25  1:48     ` Lennart Borgman
2006-12-25 10:00     ` Peter Dyballa
2006-12-26 17:27 ` Rupert [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1167154036.596593.76310@i12g2000cwa.googlegroups.com \
    --to=rswarbrick@googlemail.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).