From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Uwe Ziegenhagen Newsgroups: gmane.emacs.help Subject: How to have Emacs ignore Case and list Dirs first with dired-sort-menu Date: Thu, 26 Dec 2002 21:46:28 +0100 Organization: Humboldt Universitaet zu Berlin Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1040991633 28168 80.91.224.249 (27 Dec 2002 12:20:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 27 Dec 2002 12:20:33 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18RtTb-0007K9-00 for ; Fri, 27 Dec 2002 13:20:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18RtTk-0006Ek-02 for gnu-help-gnu-emacs@m.gmane.org; Fri, 27 Dec 2002 07:20:40 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-han1.dfn.de!news-ber1.dfn.de!zrz.TU-Berlin.DE!lnews.rz.hu-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: ppp196-146.rz.hu-berlin.de Original-X-Trace: lnews.rz.hu-berlin.de 1040935591 7586 141.20.196.146 (26 Dec 2002 20:46:31 GMT) Original-X-Complaints-To: news@lnews.rz.hu-berlin.de Original-NNTP-Posting-Date: 26 Dec 2002 20:46:31 GMT User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en Original-Xref: shelby.stanford.edu gnu.emacs.help:108505 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5034 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5034 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))))