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:
23
tools/emacs/README.txt
Normal file
23
tools/emacs/README.txt
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user