読者です 読者をやめる 読者になる 読者になる

Emacs23に、scala-modeを設定する

install した、scalaのディレクトリから、まるっと、.emacs/ へ、コピーするだけ。

MacBook:~ g$ ls /opt/local/share/scala-2.8/misc/scala-tool-support/
a2ps		emacs		geshi		kate		scite		textwrangler
bash-completion	enscript	intellij	latex		subethaedit	vim
bluefish	gedit		jedit		notepad-plus	textmate	xcode
MacBook:~ g$ ls /opt/local/share/scala-2.8/misc/scala-tool-support/emacs/
AUTHORS				scala-mode-auto.el		scala-mode-feature.el		scala-mode-navigation.el
FUTURE				scala-mode-constants.el		scala-mode-fontlock.el		scala-mode-ui.el
Makefile			scala-mode-feature-electric.el	scala-mode-indent.el		scala-mode-variables.el
README				scala-mode-feature-speedbar.el	scala-mode-inf.el		scala-mode.el
contrib				scala-mode-feature-tags.el	scala-mode-lib.el
MacBook:~ g$ cp -r /opt/local/share/scala-2.8/misc/scala-tool-support/emacs ~/.emacs.d/scala-mode
MacBook:~ g$ ls ~/.emacs.d/scala-mode/
AUTHORS				scala-mode-auto.el		scala-mode-feature.el		scala-mode-navigation.el
FUTURE				scala-mode-constants.el		scala-mode-fontlock.el		scala-mode-ui.el
Makefile			scala-mode-feature-electric.el	scala-mode-indent.el		scala-mode-variables.el
README				scala-mode-feature-speedbar.el	scala-mode-inf.el		scala-mode.el
contrib				scala-mode-feature-tags.el	scala-mode-lib.el

.emacs/init.elに、以下を追記。

; scala mode
(add-to-list 'load-path "~/.emacs.d/scala-mode")
(require 'scala-mode-auto)