diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2015-03-10 22:37:13 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2015-03-10 22:37:13 -0400 |
commit | 1b9995725af7f9deae1acc09db1d7801aab78e14 (patch) | |
tree | cf68c0f8f40f210994f8c93a1e046f32173ab2f5 /debian/urweb-mode.emacsen-startup | |
parent | b29f23f2d2f2dd587eccb9c84a77501dc9746adb (diff) |
Package urweb-mode
Diffstat (limited to 'debian/urweb-mode.emacsen-startup')
-rw-r--r-- | debian/urweb-mode.emacsen-startup | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/urweb-mode.emacsen-startup b/debian/urweb-mode.emacsen-startup new file mode 100644 index 00000000..4341955a --- /dev/null +++ b/debian/urweb-mode.emacsen-startup @@ -0,0 +1,21 @@ +;; -*-emacs-lisp-*- + +(if (not (file-exists-p "/usr/share/emacs/site-lisp/urweb-mode")) + (message "Package urweb-mode removed but not purged. Skipping setup.") + + (let ((pkgdir (concat "/usr/share/" + (symbol-name debian-emacs-flavor) + "/site-lisp/urweb-mode"))) + + ;; Only load urweb-mode if it has been installed. + (if (zerop (length (file-expand-wildcards pkgdir))) + (message "urweb-mode not for this flavor. Skipping.") + + ;; The urweb-mode package follows the Debian/GNU Linux 'emacsen' policy + ;; and byte-compiles its elisp files for each 'emacs flavor'. The + ;; compiled code is then installed in a subdirectory of the respective + ;; site-lisp directory. + (debian-pkg-add-load-path-item pkgdir) + + ;; Autoload urweb-mode top-level functions site-wide. + (load "urweb-mode-startup")))) |