Skip to content
Snippets Groups Projects
Commit 50fe2097 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

mention -*- cookie for switching emacs modes and clarify file pattern text

parent a00d7bec
No related branches found
No related tags found
No related merge requests found
...@@ -39,8 +39,14 @@ would do the following (kanged [from here](http://ergoemacs.org/emacs/emacs_inst ...@@ -39,8 +39,14 @@ would do the following (kanged [from here](http://ergoemacs.org/emacs/emacs_inst
### Autoloading \& Auto-recognition ### Autoloading \& Auto-recognition
For autoloading and auto-recognizing `in.*` and `*.lmp` files add the following To automatically turn on the LAMMPS mode for editing your input scripts,
to `.emacs`: use the following line as the **first** line of your script:
```
# -*- lammps -*-
```
For automatically switching on the LAMMPS mode based on filename patterns,
e.g. for `in.*` and `*.lmp` files, add the following code to your `.emacs`:
``` emacs-lisp ``` emacs-lisp
(autoload 'lammps-mode "lammps-mode.el" "LAMMPS mode." t) (autoload 'lammps-mode "lammps-mode.el" "LAMMPS mode." t)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment