Added emacs syntax highlighting

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5359 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
athomps
2010-12-03 19:05:23 +00:00
parent b09f5100c6
commit a9dd87de56
2 changed files with 175 additions and 0 deletions

23
tools/emacs/README.txt Normal file
View File

@ -0,0 +1,23 @@
=== Emacs Syntax Highlighting ===
Created by Aidan Thompson 12/2010
===============================
The lammps.el file provided in this directory will enable syntax
highlighting for the lammps script syntax in emacs. The groupings
of commands were copied from tools/vim. The simulation scripts have to
end on *.lmp or start with in.* (see lammps.el). By far not all
commands are included in the syntax file (lammps.el).
You can easily add new ones to the existing classes.
'lammps-mode' is derived from 'shell-script-mode' which provides
some basic syntax highlighting of strings, comments, etc.
=To enable the highlighting:
============================
(0) Create/edit the emacs init file ~/.emacs to contain:
(load "~/.emacs.d/lammps")
This file may also be called ~/.emacs.el, or ~/.emacs.d/init.el
(1) Copy lammps.el to the directory ~/.emacs.d