EMACS highlighting
--------------------------------------------------------
UPDATED===15.01.2010.11.05.06
TITLE===EMACS highlighting
TYPE===subpage
--------------------------------------------------------

<p>A very simple fluka-mode for emacs has been developed.
The present version provides highlighting for the fluka keywords.
</p><p>
You first need to download the emacs lisp file
<a href="/content/tools/fluka-mode.elc">fluka-mode.elc</a>.
</p><p>
If you have root privileges you should already know how to add it to the 
other emacs elc files. Instead if you are a simple user these
are the few steps you need to do 
to make it work:
</p><p>
<ol>
<li>Create a .lisp directory in your home directory:<br>
<pre>
	mkdir ~/.lisp
</pre>
</li>
<li>Move the lisp file into the .lisp directory<br>
<pre>
	mv fluka-mode.elc ~/.lisp/
</pre></li>
<li>Add these lines to your emacs configuration file <tt>~/.emacs</tt>:<br>
<pre>
 (autoload 'fluka-mode "~/.lisp/fluka-mode.elc" "FLUKA Mode." t)
 (or (assoc "\\.fluka$" auto-mode-alist)
     (setq auto-mode-alist
     (cons '("\\.fluka$" . fluka-mode) auto-mode-alist)))
 (autoload 'fluka-mode "~/.lisp/fluka-mode.elc" "FLUKA Mode." t)
 (or (assoc "\\.inp$" auto-mode-alist)
     (setq auto-mode-alist
     (cons '("\\.inp$" . fluka-mode) auto-mode-alist)))
</pre>
</li>
</ol>
<p>
Clearly you can also use a different name for the <tt>.lisp</tt> directory.
</p>
<p style="text-align:right;"><i>Roberto Versaci</i></p>