logo       

Re: Tuareg mode with Aquamacs: msg#00039

emacs.macintosh.osx

Subject: Re: Tuareg mode with Aquamacs

According to the tuareg-mode README, you should place both tuareg.el
and camldebug.el somewhere in your load-path (follow David's
suggestion) and add the following to your
~/Library/Preferences/Aquamacs Emacs/Preferences.el :

(setq auto-mode-alist (cons '("\\.ml\\w?" . tuareg-mode) auto-mode-alist))
(autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t)
(autoload 'camldebug "camldebug" "Run the Caml debugger" t)

After doing so and doing "M-x eval-buffer" on Preferences.el (or
re-starting Aquamacs), Aquamacs will open .ml files in tuareg-mode.
Worked for me.

--Nathaniel

On 12/15/06, David Reitter <david.reitter@xxxxxxxxx> wrote:

> On 12/15/06, Holger Schulz <qdl@xxxxxxx> wrote:
>> I tried to install the tuareg mode
>> [...]
>> I put the file tuareg.el into the Preferences/Emacs in my Library.
>> But there's no tuareg mode available.
>

That directory is already part of his load path.
However, a better place would be ~/Library/Application Support/
Aquamacs Emacs

But you will still need to actually load the file, e.g. by putting

(require 'tuareg)
(or is it (require 'tuareg-mode) ???)

in the file

~/Library/Preferences/Aquamacs Emacs/Preferences.el

Just putting an .el into one's load path won't make it load
automatically. One needs to use `load' or `require' to actually load
the file.

Hope that helps!

---------------------------- Info -----------------------------
List Post: <mailto:macosx-emacs@xxxxxxxxxxxxxxxxx>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise