all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: in reply to my other just-now post about dired which hasn't appeared FWR
Date: Thu, 01 Oct 2015 03:42:28 +0200	[thread overview]
Message-ID: <87h9mbtldn.fsf@debian.uxu> (raw)

I found an in-house solution, namely calling `dired'
with, as arguments - now just hear :) - calling dired
with `dired-directory' and `dired-listing-switches' as
arguments :) :)

Will wonders never cease? I hope not!

Here is the modified code:

;; 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))
      (setq dired-listing-switches (format "%s -h" dired-base-ls-options))
    (setq dired-listing-switches dired-base-ls-options) )
  (dired dired-directory dired-listing-switches) )

Full source:

    http://user.it.uu.se/~embe8573/conf/emacs-init/dired-my.el

-- 
underground experts united
http://user.it.uu.se/~embe8573


             reply	other threads:[~2015-10-01  1:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01  1:42 Emanuel Berg [this message]
2015-10-01 22:06 ` in reply to my other just-now post about dired which hasn't appeared FWR John Mastro
2015-10-02  0:03   ` Emanuel Berg
2015-10-03  1:21     ` Emanuel Berg
2015-10-04  0:15   ` Emanuel Berg

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h9mbtldn.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.