help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Trouble getting archives to load as archives


From: Peter Dyballa
Subject: Re: Trouble getting archives to load as archives
Date: Fri, 4 Jul 2008 23:57:39 +0200


Am 04.07.2008 um 00:59 schrieb Davin Pearson:

(setq auto-mode-alist
      (cons '("\\.\\(arc\\|zip\\|lzh\\|zoo\\)\\'" . archive-mode)
            auto-mode-alist))

Using

(add-to-list 'auto-mode-alist '("\\.\\(arc\\|zip\\|lzh\\|zoo\\)\ \'" . archive-mode))

should put your additions atop of the old entries. I've also seen statements similiar to this

        (setq auto-mode-alist
          (append
            '(("\\.\\(arc\\|zip\\|lzh\\|zoo\\)\\'" . archive-mode)
          auto-mode-alist)))


The documentation on auto-mode-alist emphasises:

        The extensions whose FUNCTION is `archive-mode' should also
        appear in `auto-coding-alist' with `no-conversion' coding system.

which should be fulfilled for your file types. Anyway, in my Emacsen I have defined in auto-mode-alist:

("\\.\\(arc\\|zip\\|lzh\\|lha\\|zoo\\|[jew]ar\\|xpi\\)\\'" . archive-mode) ("\\.\\(ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\)\\'" . archive-mode)

Are these too many members?

--
Greetings

  Pete

A child of five could understand this!  Fetch me a child of five.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]