Miles Bader <miles.bader@necel.com> writes: > Incidentally, while on the issue of debian emacs startup, I have the > following snippet in my .emacs file for hooking my non-debian emacs > into the debian emacs package system: > > ;; Debian stuff > (unless (boundp 'debian-emacs-flavor) > (load "/usr/share/emacs/site-lisp/debian-startup") > (debian-startup 'emacs22) > (debian-startup 'emacs22)) > > ["emacs22" because there is no emacs23 in debian yet] Here's my setup. The first attachment is a script to run in the emacs source directory as root after doing "./configure ; make". It depends on a fake emacs-snapshot package built using equivs. The second attachment is an init file that handles all the Debian stuff, including a rewrite of `debian-run-directories' to make its modifications to load-path less intrusive.
Attachment:
pgpeADd5QADES.pgp
Description: PGP signature
#!/bin/bash # # Restore custom-compiled emacs if test ! -d ./lisp/emacs-lisp; then echo "You are not in the right directory." exit 1 fi if test "$UID" != "0"; then echo "You must be root to run this." exit 1 fi echo "Stage 1: Installing emacs ..." make install echo "Stage 2: Install fake emacs-snapshot package ..." dpkg -i ../../emacs-snapshot_1.0_i386.deb echo "Done." echo "Stage 2: Making symlinks ..." latest=$(cd /usr/local/share/emacs && echo 23.* | tr ' ' '\n' | sort \ | tail -n 1) ln -sf /usr/local/share/emacs/$latest /usr/share/emacs-snapshot ln -sf /usr/local/bin/emacs /usr/bin/emacs-snapshot mkdir -p /etc/emacs-snapshot/site-start.d echo "Done." echo "Stage 3: Installing emacs-snapshot flavor ..." echo >> /var/lib/emacsen-common/installed-flavors echo emacs-snapshot >> /var/lib/emacsen-common/installed-flavors /usr/lib/emacsen-common/emacs-install emacs-snapshot echo "Done."
Attachment:
debian-init.el
Description: application/emacs-lisp
-- | Michael Olson | FSF Associate Member #652 | | http://mwolson.org/ | Hobbies: Lisp, HCoop | | Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner | `-------------------------------------------------------'