How to set new modes in emacs 23 on OS X?

I just downloaded the Haskell and J modes from SourceForge, and it's hard for me to figure out how to make their interface with emacs. A Google search provides detailed instructions for emacs 22, but it looks like changes have been made that make it difficult to figure out where I should store the source files. The internal documentation seems to suggest more experience with the internal components of emacs than it is currently, and the problem does not withstand any problems for several days. Does anyone know how to start and run these modes?

EDIT: Thanks Untwisted for providing the answer. Ultimately, my real problems were the following:

1) I did not know that .emacs was invisible to the OSX crawler, but was visible through the terminal.

2) It never occurred to me that I could change .emacs while the emacs instance was starting.

As soon as I realized that these were my problems, I used Cx Cf to open ~ / .emacs, copied the patch text with a scan and modified it to reflect my personal file paths. After that, everything worked.

+5
source share
1 answer

Basically you need to put the .el files somewhere (I save my file in ~ / .emacs_extras / haskell-mode /) and edit the ~ / .emacs file to load the Haskell mode when necessary. Example ~ / .emacs file:

(load "~/.emacs_addons/haskell-mode/haskell-site-file")
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)

Haskell. , ..: http://www.haskell.org/haskellwiki/Haskell_mode_for_Emacs

+7

All Articles