10.1 Directory Layout

It is recommended to install the mode in a dedicated directory:

~/.emacs.d/elegant-lattice/

Place the following files in this directory:

elegant-lattice-mode.el 
elegant-lattice-data.el

10.1.1 Generating Completion Data

Generate the data file using:

python3 generate_elegant_lattice_data_el.py /path/to/track_data.c \ 
  -o ~/.emacs.d/elegant-lattice/elegant-lattice-data.el

This step should be repeated whenever ELEGANT is updated.

10.1.2 Emacs Configuration

Add the directory to your load-path and require the mode:

(add-to-list load-path (expand-file-name "~/.emacs.d/elegant-lattice")) 
(require elegant-lattice-mode)

Ensure automatic activation:

(add-to-list auto-mode-alist ’("\\.lte\\’" . elegant-lattice-mode)) 
(add-to-list auto-mode-alist ’("\\.lat\\’" . elegant-lattice-mode))

Restart Emacs after editing your initialization file.