unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: drain <aeuster@gmail.com>
Cc: Help-gnu-emacs@gnu.org
Subject: Re: .emacs not loading .el library
Date: Wed, 8 Aug 2012 00:56:36 +0200	[thread overview]
Message-ID: <3D918720-592E-4F6D-B3BC-627CFCD793D0@Web.DE> (raw)
In-Reply-To: <1344378988197-260860.post@n5.nabble.com>


Am 08.08.2012 um 00:36 schrieb drain:

> (load "~/where/my/keybinding/configs/are.el")
> 
> I have eight of these located in the same directory, and wanted to load them
> all with one line of code in my .emacs:
> 
> (add-to-list 'load-path "/path/to/my/lisp/library")

In case "/path/to/my/lisp/library" is the same path as "~/where/my/keybinding/configs" then the last statement allows you to perform eight times:

	(load "are.el" t t t)

The variable load-path is similar to the environment variable PATH (or path) for (some) shells: it allows to find a command by the file name (for example: "ls") or to load an Elisp file by its name (for example: "are.el") instead of using the full path name. (When PATH points to the directory with ls, remove, compile, why isn't the shell endlessly ls'sing, removing, and compiling?)

--
Greetings

  Pete

To be is to do.
			– I. Kant
To do is to be.
			– A. Sartre
Yabba-Dabba-Doo!
			– F. Flintstone




      parent reply	other threads:[~2012-08-07 22:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-07 22:36 .emacs not loading .el library drain
2012-08-07 22:55 ` Alp Aker
2012-08-07 22:56 ` Peter Dyballa [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=3D918720-592E-4F6D-B3BC-627CFCD793D0@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=aeuster@gmail.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).