1;; Add the following to your ~/.emacs file to get the full
2;; benefit of gretl-mode
3
4(setq auto-mode-alist
5      (cons '("\\.inp$" . gretl-mode) auto-mode-alist))
6(autoload 'gretl-mode "gretl" nil t)
7(add-hook 'gretl-mode-hook
8          (lambda ()
9            (abbrev-mode 1)
10            (auto-fill-mode 1)
11            (if (eq window-system 'x)
12                (font-lock-mode 1))))
13
14