[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Which path for the dictionary? ... auto-completion possible in Emacs
From: |
Heikki Johannes Junes |
Subject: |
Re: Which path for the dictionary? ... auto-completion possible in Emacs. |
Date: |
Fri, 22 Nov 2002 02:07:05 +0200 (EET) |
> On the other hand, we already now have lilypond-mode.el,
> lilypond-font-lock.el and lilypond-indent.el that has to be
> included in the Emacs load path in some way or the other.
> Therefore, the obvious solution is to place also the dictionary
> file in the same directory and find it via the load path.
>
> /Mats
Indeed, load-path is useful (paste to emacs, eval with C-x C-e):
(progn
(setq lp load-path)
(setq not-found t)
(setq fn nil)
(while (and (> (length lp) 0) not-found)
(setq fn (concat (car lp) "/lilypond.words"))
(if (file-readable-p fn) (setq not-found nil) (setq lp (cdr lp))))
fn)
Heikki Junes