[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Which path for the dictionary? ... auto-completion possible in Emacs
Heikki Johannes Junes
Re: Which path for the dictionary? ... auto-completion possible in Emacs.
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.
Indeed, load-path is useful (paste to emacs, eval with C-x C-e):
(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))))