From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Molitor, Stephen" Newsgroups: gmane.emacs.help Subject: Adding file types for automatic uncompressing Date: Mon, 22 Apr 2002 12:57:23 -0500 Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: main.gmane.org 1019498630 26004 127.0.0.1 (22 Apr 2002 18:03:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2002 18:03:50 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16ziAI-0006lI-00 for ; Mon, 22 Apr 2002 20:03:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16zi6q-0000n4-00; Mon, 22 Apr 2002 14:00:16 -0400 Original-Received: from smtp1.erac.com ([65.197.19.21] helo=exicorp01.enterprise.com) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16zi4E-0000Zc-00 for ; Mon, 22 Apr 2002 13:57:35 -0400 Original-Received: from 10.9.163.21 by exicorp01.enterprise.com (InterScan E-Mail VirusWall NT); Mon, 22 Apr 2002 12:54:15 -0500 Original-Received: by EXICORP01 with Internet Mail Service (5.5.2653.19) id <24JTAJ85>; Mon, 22 Apr 2002 12:54:15 -0500 Original-To: help-gnu-emacs@gnu.org X-Mailer: Internet Mail Service (5.5.2653.19) Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:133 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:133 I'd like to add a few file types to the set of compressed file types, so that when I open a file via find-file or dired, it automatically get's uncompressed. Specifily, .ear and .war files. These are just zip files, with different extensions. I tried doing this: (setq auto-mode-alist (cons '("\\.ear$" . ear-mode) auto-mode-alist)) (setq file-name-buffer-file-type-alist (cons '("\\.ear$" . t) file-name-buffer-file-type-alist)) But that didn't seem to have any effect. Thanks! Steve Molitor smolitor@erac.com