[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian's idiosyncratic complexification of Emacs



On Tue, 22 Jul 2008 13:27:23 +0900, Miles Bader <miles.bader@necel.com> said: 

> 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]

> It does appear to work (I can even use complicated packages like ecb
> installed via aptitude), but is obviously slightly odd; is there a
> better way than this?

> AFAICT, the multiple calls to `debian-startup' are necessary -- it
> doesn't work with just one -- which is one of the weird things nobody
> seemed to understand when I asked about it a few years about on
> debian-emacsen....

        Strange. Here is my variant:
(if (emacs-type-eq 'fsf)
    (if (emacs-version=  23 )
        (progn
          (add-to-list 'load-path "/usr/share/emacs/site-lisp/")
          (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/")
          (defconst debian-emacs-flavor 'emacs22)
          (load "debian-startup")
          (debian-startup 'emacs-snapshot))))

        This seems to work fine, with just a single invocation.

        manoj
-- 
Only God can make random selections.
Manoj Srivastava <srivasta@acm.org> <http://www.golden-gryphon.com/>  
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C


Reply to: