Create the following directory structure in your home directory:
The files required are:
This part is usually done by the elegant developers. If you install elegant from source, you may also wish to do this step. Use the provided Python script (in elegantTools):
This creates:
These are required for completion.
Copy the provided elegant-mode.el file into:
Edit or create:
Add:
(add-to-list ’load-path " /.emacs.d/elegant")
(load "elegant-namelists.el" nil t)
(load "elegant-mode.el" nil t)
(add-to-list ’auto-mode-alist ’("\\.ele\\’" . elegant-mode))
(setq completion-cycle-threshold 1)
(setq tab-always-indent ’complete)
(define-key global-map (kbd "TAB") #’completion-at-point)
Start Emacs normally:
The mode line should display elegant. To confirm correct installation: