From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
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 [thread overview]
Message-ID: <87r3lbv683.fsf@debian.uxu> (raw)
In-Reply-To: CAOj2CQRwK5us_XqK_nksO4=eoPrUJesikL5S7DKvPm-tVBJKeQ@mail.gmail.com
John Mastro <john.b.mastro@gmail.com> 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
prev parent reply other threads:[~2015-10-04 0:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-01 1:42 in reply to my other just-now post about dired which hasn't appeared FWR Emanuel Berg
2015-10-01 22:06 ` John Mastro
2015-10-02 0:03 ` Emanuel Berg
2015-10-03 1:21 ` Emanuel Berg
2015-10-04 0:15 ` Emanuel Berg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r3lbv683.fsf@debian.uxu \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).