1 ;; Emacs startup file for Debian package ‘inform-mode’.
3 ;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at>
4 ;; Modified by Dirk Eddelbuettel <edd@debian.org>
5 ;; Adapted for dh-make by Jim Van Zandt <jrv@vanzandt.mv.com>
8 ;; This package follows the Debian Emacsen policy: it
9 ;; byte-compiles its elisp files for each Emacs “flavor”
10 ;; (‘emacs20’, ‘xemacs20’, ‘emacs21’, ‘xemacs21’, ...). The
11 ;; compiled code is then installed in a package subdirectory of
12 ;; the respective ‘site-lisp’ directory.
13 ((package-dir (concat "/usr/share/"
14 (symbol-name debian-emacs-flavor)
15 "/site-lisp/inform-mode")))
17 (when (file-directory-p package-dir)
18 ;; Add the package directory to the Emacs load-path.
19 (setq load-path (nconc load-path (list package-dir)))
21 (autoload 'inform-mode "inform-mode" "Inform editing mode." t)
22 (autoload 'inform-maybe-mode "inform-mode" "Inform/C header editing mode.")
24 (append '(("\\.h\\'" . inform-maybe-mode)
25 ("\\.inf\\'" . inform-mode))
28 (add-hook 'inform-mode-hook 'turn-on-font-lock)