From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: in reply to my other just-now post about dired which hasn't appeared FWR Date: Sun, 04 Oct 2015 02:15:56 +0200 Message-ID: <87r3lbv683.fsf@debian.uxu> References: <87h9mbtldn.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1443917255 11397 80.91.229.3 (4 Oct 2015 00:07:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Oct 2015 00:07:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 04 02:07:25 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZiWpn-0006HM-GJ for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Oct 2015 02:07:23 +0200 Original-Received: from localhost ([::1]:40452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiWpm-00004s-Qc for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Oct 2015 20:07:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiWpc-0008Tr-2q for help-gnu-emacs@gnu.org; Sat, 03 Oct 2015 20:07:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiWpY-00047k-PG for help-gnu-emacs@gnu.org; Sat, 03 Oct 2015 20:07:11 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiWpY-00047d-Hm for help-gnu-emacs@gnu.org; Sat, 03 Oct 2015 20:07:08 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZiWpU-0005vI-7G for help-gnu-emacs@gnu.org; Sun, 04 Oct 2015 02:07:04 +0200 Original-Received: from nl106-137-244.student.uu.se ([130.243.137.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Oct 2015 02:07:04 +0200 Original-Received: from embe8573 by nl106-137-244.student.uu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Oct 2015 02:07:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nl106-137-244.student.uu.se Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:DUjY9zQ11dzaZa4VtnXcfhL4FjE= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107502 Archived-At: John Mastro writes: > You may already know this, but I'll mention it > anyway, since it took me quite a while to notice, so > maybe others haven't found it yet either: With `C-u > s' (that's `dired-sort-toggle-or-edit') you can edit > the listing switches however you like. The change > affects only the current buffer. > > I previously used a custom command to select > a sorting method via `ido' but since discovering > `C-u s' I've found it's more general and just > as convenient. Here, the best of both worlds - and I'm not talking Captain Picard against the Borg Queen here! ;; dired ls (defvar dired-ls-human nil) (defvar dired-base-ls-options "-AGlX --group-directories-first") (setq dired-listing-switches dired-base-ls-options) (defun dired-toggle-human () (interactive) (if (setq dired-ls-human (not dired-ls-human)) (dired-sort-other (format "%s -h" dired-base-ls-options)) (dired-sort-other dired-base-ls-options) )) I've written one interface for each day of the year by now. I would have that psycho-analyzed, if only I did trust and respect psychoanalysis. But I will arrive at something new or die trying. Or die writing interfaces, I should say! If I never do, the old theory of doing new things eventually by doing old things better, is ready for the dust bin of history... -- underground experts united http://user.it.uu.se/~embe8573