all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* in reply to my other just-now post about dired which hasn't appeared FWR
@ 2015-10-01  1:42 Emanuel Berg
  2015-10-01 22:06 ` John Mastro
  0 siblings, 1 reply; 5+ messages in thread
From: Emanuel Berg @ 2015-10-01  1:42 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-04  0:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.