comp.lang.ada
 help / color / mirror / Atom feed
* Emacs-ada-mode Installation Problems
@ 1994-09-16 21:02 mcnett michael david
  1994-09-16 23:05 ` rolf ebert
  0 siblings, 1 reply; 2+ messages in thread
From: mcnett michael david @ 1994-09-16 21:02 UTC (permalink / raw)



I have recently installed gnat 1.82 on the local unix machine and
want to get the emacs-ada-mode working but I am having some problems.

When trying to get the ada-mode working, the instructions are:

"Put the ada-mode.el file in your load-path (for .el files) and
optionally byte compile it."

What does it mean about "load path"?

Thanks in advance, and I hope that this will solve some of my
problems.

Mike McNett,  mmcnett@uiuc.edu




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Emacs-ada-mode Installation Problems
  1994-09-16 21:02 Emacs-ada-mode Installation Problems mcnett michael david
@ 1994-09-16 23:05 ` rolf ebert
  0 siblings, 0 replies; 2+ messages in thread
From: rolf ebert @ 1994-09-16 23:05 UTC (permalink / raw)


the load path is the path where Emacs looks for input files. The online
documentation (C-h v load-path) gives (for me):

load-path's value is ("/u3/rolf/unix/elisp" "/u3/rolf/unix/elisp/devel" "/u7/rolf/gnu/lib/emacs/site-lisp" "/u7/rolf/gnu/lib/emacs/19.26/lisp")

Documentation:
*List of directories to search for files to load.
Each element is a string (directory name) or nil (try default directory).
Initialized based on EMACSLOADPATH environment variable, if any,
otherwise to default specified by file `paths.h' when Emacs was built.


You can add your personal extensions to Emacs with the following lines 
in your .emacs:

(defun add-to-load-path (directory-list)
  (mapcar (function (lambda (directory)
                      (or (member directory load-path)
                          (setq load-path (cons directory load-path)))))
	  directory-list))

;(add-to-load-path (list "/path/one"
;                        "/path/two"
;                        "/blah/blah/blah"))

(add-to-load-path (list (expand-file-name "~/elisp")
                        (expand-file-name "~/elisp/devel"))

This adds the 2 directories to the load-path. Put there your newly purchased
ada-mode.el and it should work now. 

Mail me if you still have problems.

	Rolf



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-09-16 23:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-09-16 21:02 Emacs-ada-mode Installation Problems mcnett michael david
1994-09-16 23:05 ` rolf ebert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox