Imported Debian patch 0.84-4
[pkg-lisaac.git] / debian / lisaac-mode.emacsen-startup
blob36b3f2f6f472ed32194abc633fa848c8055fe7bb
1 ;; -*-emacs-lisp-*-
3 (if (not (file-exists-p "/usr/share/emacs/site-lisp/lisaac-mode"))
4     (message "Package lisaac-mode removed but not purged.  Skipping setup.")
6   ;; The lisaac-mode package follows the Debian/GNU Linux 'emacsen' policy
7   ;; and byte-compiles its elisp files for each 'emacs flavor'.  The compiled
8   ;; code is then installed in a subdirectory of the respective site-lisp
9   ;; directory.
10   (debian-pkg-add-load-path-item
11    (concat 
12     "/usr/share/" (symbol-name debian-emacs-flavor) "/site-lisp/lisaac-mode"))
14   ;; Automatically start lisaac files in lisaac-mode.
15   (add-to-list (quote auto-mode-alist) (quote ("\\.li\\'" . lisaac-mode)))
17   ;; Make sure that Help can find the source code.  Has to be at the end.
18   (setq load-path
19       (nconc load-path (list "/usr/share/emacs/site-lisp/lisaac-mode")))
20   
21   (load "lisaac-mode"))