[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
in reply to my other just-now post about dired which hasn't appeared FWR
From: |
Emanuel Berg |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
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
- in reply to my other just-now post about dired which hasn't appeared FWR,
Emanuel Berg <=