| 1 |
;;; 50ratpoison.el -- debian emacs setups for ratpoison |
| 2 |
|
| 3 |
(cond ((not (file-exists-p "/usr/share/emacs/site-lisp/ratpoison")) |
| 4 |
(message "ratpoison removed but not purged, skipping setup")) |
| 5 |
|
| 6 |
((not (locate-library "generic-x")) |
| 7 |
;; no generic-x.el in XEmacs 21.4.22 |
| 8 |
(message "ratpoison no generic-x.el in this Emacs, skipping setup")) |
| 9 |
|
| 10 |
(t |
| 11 |
;; debian-pkg-add-load-path-item available as of debian 3.1 "sarge" |
| 12 |
(debian-pkg-add-load-path-item (concat "/usr/share/" |
| 13 |
(symbol-name debian-emacs-flavor) |
| 14 |
"/site-lisp/ratpoison")) |
| 15 |
|
| 16 |
(autoload 'ratpoisonrc-mode "ratpoison" nil t) |
| 17 |
|
| 18 |
;; regexp copied from ratpoison.el |
| 19 |
(add-to-list 'auto-mode-alist '("\\.ratpoisonrc\\'" . ratpoisonrc-mode)) |
| 20 |
|
| 21 |
;; allow "M-x customize-group ratpoison" to autoload ratpoison.el |
| 22 |
;; this line per an autoload cookie on defgroup |
| 23 |
(let ((loads (get 'ratpoison 'custom-loads))) (if (member '"ratpoison" loads) nil (put 'ratpoison 'custom-loads (cons '"ratpoison" loads)))))) |