| 1 |
;; -*-emacs-lisp-*- |
| 2 |
;; |
| 3 |
;; Emacs startup file for the Debian develock-el package |
| 4 |
;; |
| 5 |
;; Originally contributed by Nils Naumann <[email protected]> |
| 6 |
;; Modified by Dirk Eddelbuettel <[email protected]> |
| 7 |
;; Adapted for dh-make by Jim Van Zandt <[email protected]> |
| 8 |
|
| 9 |
;; The develock-el package follows the Debian/GNU Linux 'emacsen' policy and |
| 10 |
;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, |
| 11 |
;; xemacs19, emacs20, xemacs20...). The compiled code is then |
| 12 |
;; installed in a subdirectory of the respective site-lisp directory. |
| 13 |
;; We have to add this to the load-path: |
| 14 |
|
| 15 |
(if (not (file-exists-p "/usr/share/emacs/site-lisp/develock-el")) |
| 16 |
(message "Package develock-el removed but not purged. Skipping setup.") |
| 17 |
(debian-pkg-add-load-path-item |
| 18 |
(concat "/usr/share/" (symbol-name debian-emacs-flavor) |
| 19 |
"/site-lisp/develock-el")) |
| 20 |
|
| 21 |
(cond ((featurep 'xemacs) |
| 22 |
(require 'develock) |
| 23 |
;; `turn-on-develock' is equivalent to `turn-on-font-lock', |
| 24 |
;; except that it does not highlight the startup screen. |
| 25 |
(add-hook 'lisp-interaction-mode-hook 'turn-on-develock) |
| 26 |
(add-hook 'mail-setup-hook 'turn-on-font-lock)) |
| 27 |
((>= emacs-major-version 20) |
| 28 |
(require 'develock) |
| 29 |
(global-font-lock-mode 1)))) |