From: bojohan+news@dd.chalmers.se (Johan Bockgård)
Subject: Re: emacs windows load path
Date: Sat, 29 Mar 2003 21:46:55 +0100 [thread overview]
Message-ID: <yoijllyxkiio.fsf@helm.dd.chalmers.se> (raw)
In-Reply-To: Xns934D66D8D1FD8chrislak@216.168.3.44
Chris <chrisl_ak@hotmail.com> writes:
> With emacs 21 on Windows, is there a way to get the load-path
> behavior to work as it does in Linux. Specifically, I have this in
> my linux .emacs:
>
> ;; Add Personal lisp files to load path
> (add-to-list 'load-path "~/elisp")
>
> Which gets all the files in ~/elisp and all subdirectories.
Really? I don't think it does. I do think that it is convenient,
though, so I use the following hack.
(defun add-subdirs-to-load-path (dir)
;; wants a trailing slash
(let ((default-directory (concat dir "/")))
(normal-top-level-add-subdirs-to-load-path)))
,----[ C-h f normal-top-level-add-subdirs-to-load-path RET ]
| normal-top-level-add-subdirs-to-load-path is a compiled Lisp
| function in `startup'.
| (normal-top-level-add-subdirs-to-load-path)
|
| Add all subdirectories of current directory to `load-path'.
| More precisely, this uses only the subdirectories whose names
| start with letters or digits; it excludes any subdirectory named `RCS'
| or `CVS', and any subdirectory that contains a file named `.nosearch'.
`----
Then I can do (add-subdirs-to-load-path "~/elisp").
/Johan
next prev parent reply other threads:[~2003-03-29 20:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-29 19:08 emacs windows load path Chris
2003-03-29 20:46 ` Johan Bockgård [this message]
2003-03-31 16:08 ` Stefan Monnier
2003-03-29 20:52 ` Ehud Karni
-- strict thread matches above, loose matches on Subject: below --
2003-03-29 19:43 Bingham, Jay
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yoijllyxkiio.fsf@helm.dd.chalmers.se \
--to=bojohan+news@dd.chalmers.se \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.