1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/debian/emacsen-startup.ex Sat Mar 01 15:21:12 2014 +0100
1.3 @@ -0,0 +1,26 @@
1.4 +;; -*-emacs-lisp-*-
1.5 +;;
1.6 +;; Emacs startup file, e.g. /etc/emacs/site-start.d/50libcalendaring.el
1.7 +;; for the Debian libcalendaring package
1.8 +;;
1.9 +;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at>
1.10 +;; Modified by Dirk Eddelbuettel <edd@debian.org>
1.11 +;; Adapted for dh-make by Jim Van Zandt <jrv@debian.org>
1.12 +
1.13 +;; The libcalendaring package follows the Debian/GNU Linux 'emacsen' policy and
1.14 +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
1.15 +;; xemacs19, emacs20, xemacs20...). The compiled code is then
1.16 +;; installed in a subdirectory of the respective site-lisp directory.
1.17 +;; We have to add this to the load-path:
1.18 +(let ((package-dir (concat "/usr/share/"
1.19 + (symbol-name debian-emacs-flavor)
1.20 + "/site-lisp/libcalendaring")))
1.21 +;; If package-dir does not exist, the libcalendaring package must have
1.22 +;; removed but not purged, and we should skip the setup.
1.23 + (when (file-directory-p package-dir)
1.24 + (if (fboundp 'debian-pkg-add-load-path-item)
1.25 + (debian-pkg-add-load-path-item package-dir)
1.26 + (setq load-path (cons package-dir load-path)))
1.27 + (autoload 'libcalendaring-mode "libcalendaring-mode"
1.28 + "Major mode for editing libcalendaring files." t)
1.29 + (add-to-list 'auto-mode-alist '("\\.libcalendaring$" . libcalendaring-mode))))