From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Rupert" Newsgroups: gmane.emacs.help Subject: Re: how to get this file to work? (another newbie question) Date: 26 Dec 2006 09:27:16 -0800 Organization: http://groups.google.com Message-ID: <1167154036.596593.76310@i12g2000cwa.googlegroups.com> References: <1166995315.273408.54940@a3g2000cwd.googlegroups.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1167154831 15367 80.91.229.10 (26 Dec 2006 17:40:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Dec 2006 17:40:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 26 18:40:29 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GzGHs-000361-0h for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Dec 2006 18:40:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GzGHr-0006YZ-Fs for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Dec 2006 12:40:27 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i12g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-NNTP-Posting-Host: 81.77.84.56 Original-X-Trace: posting.google.com 1167154040 12020 127.0.0.1 (26 Dec 2006 17:27:20 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 26 Dec 2006 17:27:20 +0000 (UTC) In-Reply-To: <1166995315.273408.54940@a3g2000cwd.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061024 Iceweasel/2.0 (Debian-2.0+dfsg-1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: i12g2000cwa.googlegroups.com; posting-host=81.77.84.56; posting-account=gzV7zA0AAABSTAJnd6XhxICCG2AoOEvs Original-Xref: shelby.stanford.edu gnu.emacs.help:144327 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: news.gmane.org gmane.emacs.help:39929 Archived-At: 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