diff options
| author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-17 13:00:12 +0000 |
|---|---|---|
| committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-17 13:00:12 +0000 |
| commit | 78c7237b805620d0b8275377fefa9b3ba8ff1954 (patch) | |
| tree | ada1a5165863d41995360edd0b7b9764a483d717 /debian/emacsen-startup.ex | |
| parent | 46632c536288d4159d7c78cab921dc2ab2d08dc4 (diff) | |
| download | python-dmidecode-78c7237b805620d0b8275377fefa9b3ba8ff1954.tar.gz python-dmidecode-78c7237b805620d0b8275377fefa9b3ba8ff1954.tar.xz python-dmidecode-78c7237b805620d0b8275377fefa9b3ba8ff1954.zip | |
And the debian subfolder itself...
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@111 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'debian/emacsen-startup.ex')
| -rw-r--r-- | debian/emacsen-startup.ex | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/emacsen-startup.ex b/debian/emacsen-startup.ex new file mode 100644 index 0000000..4be9e8a --- /dev/null +++ b/debian/emacsen-startup.ex @@ -0,0 +1,25 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file, e.g. /etc/emacs/site-start.d/50dmidecode.el +;; for the Debian dmidecode package +;; +;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at> +;; Modified by Dirk Eddelbuettel <edd@debian.org> +;; Adapted for dh-make by Jim Van Zandt <jrv@debian.org> + +;; The dmidecode package follows the Debian/GNU Linux 'emacsen' policy and +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, +;; xemacs19, emacs20, xemacs20...). The compiled code is then +;; installed in a subdirectory of the respective site-lisp directory. +;; We have to add this to the load-path: +(let ((package-dir (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/dmidecode"))) +;; If package-dir does not exist, the dmidecode package must have +;; removed but not purged, and we should skip the setup. + (when (file-directory-p package-dir) + (setq load-path (cons package-dir load-path)) + (autoload 'dmidecode-mode "dmidecode-mode" + "Major mode for editing dmidecode files." t) + (add-to-list 'auto-mode-alist '("\\.dmidecode$" . dmidecode-mode)))) + |
