Package: ratpoison
Version: 1.4.8-1
Severity: wishlist
Tags: patch
It'd be good to have emacs setups to use ratpoison.el automatically on
.ratpoisonrc files. I get some joy from debian/emacsen-startup below,
which dh_installemacsen should install to
/etc/emacs/site-start.d/50ratpoison.el.
The load-path directory bit allows "M-x load-library ratpoison-cmd" or
(require 'ratpoison-cmd). I think the long list of commands there too
many to autoload, leave it to the user to load if running ratpoison and
when wanted.
;;; 50ratpoison.el -- debian emacs setups for ratpoison
(cond ((not (file-exists-p "/usr/share/emacs/site-lisp/ratpoison"))
(message "ratpoison removed but not purged, skipping setup"))
((not (locate-library "generic-x"))
;; no generic-x.el in XEmacs 21.4.22
(message "ratpoison no generic-x.el in this Emacs, skipping setup"))
(t
;; debian-pkg-add-load-path-item available as of debian 3.1 "sarge"
(debian-pkg-add-load-path-item (concat "/usr/share/"
(symbol-name debian-emacs-flavor)
"/site-lisp/ratpoison"))
(autoload 'ratpoisonrc-mode "ratpoison" nil t)
;; regexp copied from ratpoison.el
(add-to-list 'auto-mode-alist '("\\.ratpoisonrc\\'" . ratpoisonrc-mode))
;; allow "M-x customize-group ratpoison" to autoload ratpoison.el
;; this line per an autoload cookie on defgroup
(let ((loads (get 'ratpoison 'custom-loads))) (if (member '"ratpoison"
loads) nil (put 'ratpoison 'custom-loads (cons '"ratpoison" loads))))))
-- System Information:
Debian Release: stretch/sid
Architecture: i386 (i686)
Kernel: Linux 4.2.0-1-686-pae (SMP w/1 CPU core)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages ratpoison depends on:
ii libc6 2.19-22
ii libx11-6 2:1.6.3-1
ii libxft2 2.3.2-1
ii libxinerama1 2:1.1.3-1+b1
ii libxtst6 2:1.2.2-1+b1
Versions of packages ratpoison recommends:
pn 9menu <none>
ii eterm [x-terminal-emulator] 0.9.6-3
ii menu 2.1.47
ii mrxvt [x-terminal-emulator] 0.5.4-1.1+b2
ii mrxvt-mini [x-terminal-emulator] 0.5.4-1.1+b2
ii xterm [x-terminal-emulator] 320-1
Versions of packages ratpoison suggests:
pn xbindkeys <none>
pn xclip <none>
-- no debconf information