logo       

How to have Emacs ignore Case and list Dirs first with dired-sort-menu: msg#00854

emacs.help

Subject: How to have Emacs ignore Case and list Dirs first with dired-sort-menu

Hello, i use the foolwing line in my .emacs to have Emacs ignore Case and list directories first when in the dir mode.

The options are saved but not laoded by default, so i have to toggle between saved and actual each time. How can i have Emacs (or load these options when starting)

I even set (setq ls-lisp-dirs-first t) and (setq ls-lisp-ignore-case t), but this is ignored.


Uwe

; http://centaur.maths.qmw.ac.uk/Emacs/

(add-hook 'dired-load-hook
(lambda () (load-library "ls-lisp")))

(add-hook 'dired-load-hook
(lambda () (require 'dired-explore)))

(add-hook 'dired-load-hook
(lambda () (require 'dired-sort-menu)))

; this should do it, but somehow doesn't work
;
(setq ls-lisp-dirs-first t)
(setq ls-lisp-ignore-case t)

'(dired-sort-menu-saved-config (quote ((dired-actual-switches . "-al") (ls-lisp-ignore-case . t) (ls-lisp-dirs-first . t))))


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise