From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Is it a mistake to define dired-omit-mode as a minor mode? Date: Thu, 25 Mar 2010 09:14:34 +0200 Organization: JURTA Message-ID: <878w9h3qgt.fsf@mail.jurta.org> References: <201003182241.12611.tassilo@member.fsf.org> <87iq8mcnqe.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269502255 15114 80.91.229.12 (25 Mar 2010 07:30:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Mar 2010 07:30:55 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 25 08:30:50 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NuhWj-0006zi-7P for ged-emacs-devel@m.gmane.org; Thu, 25 Mar 2010 08:30:49 +0100 Original-Received: from localhost ([127.0.0.1]:50308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuhWi-0005uu-GY for ged-emacs-devel@m.gmane.org; Thu, 25 Mar 2010 03:30:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuhRT-0004Ei-QB for emacs-devel@gnu.org; Thu, 25 Mar 2010 03:25:23 -0400 Original-Received: from [140.186.70.92] (port=32852 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuhRS-0004Dm-2x for emacs-devel@gnu.org; Thu, 25 Mar 2010 03:25:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuhRO-0003eL-0v for emacs-devel@gnu.org; Thu, 25 Mar 2010 03:25:21 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4]:56674 helo=mx2.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuhRM-0003e6-KN for emacs-devel@gnu.org; Thu, 25 Mar 2010 03:25:17 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.30.101.cable.starman.ee [82.131.30.101]) by mx2.starman.ee (Postfix) with ESMTP id 1424F3F40C2; Thu, 25 Mar 2010 09:25:09 +0200 (EET) In-Reply-To: <87iq8mcnqe.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 24 Mar 2010 11:31:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:122640 Archived-At: > Maybe the docstring should say what is the preferred way to enable it > in .emacs? E.g. (add-hook 'dired-mode-hook (lambda () (dired-omit-mode 1))) === modified file 'lisp/dired-x.el' --- lisp/dired-x.el 2010-01-13 08:35:10 +0000 +++ lisp/dired-x.el 2010-03-25 07:14:18 +0000 @@ -163,7 +163,13 @@ (define-minor-mode dired-omit-mode otherwise. Enabling and disabling is buffer-local. If enabled, \"uninteresting\" files are not listed. Uninteresting files are those whose filenames match regexp `dired-omit-files', -plus those ending with extensions in `dired-omit-extensions'." +plus those ending with extensions in `dired-omit-extensions'. + +To enable omitting in every Dired buffer, you can put in your ~/.emacs + + (add-hook 'dired-mode-hook (lambda () (dired-omit-mode 1))) + +See Info node `(dired-x) Omitting Variables' for more information." :group 'dired-x (if dired-omit-mode ;; This will mention how many lines were omitted: -- Juri Linkov http://www.jurta.org/emacs/