unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Ehud Karni" <ehud@unix.mvs.co.il>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to have Emacs ignore Case and list Dirs first with dired-sort-menu
Date: Sun, 29 Dec 2002 19:34:40 +0200	[thread overview]
Message-ID: <200212291734.gBTHYetV006525@beta.mvs.co.il> (raw)
In-Reply-To: <aufpr7$7d2$1@lnews.rz.hu-berlin.de> (message from Uwe Ziegenhagen on Thu, 26 Dec 2002 21:46:28 +0100)

On Thu, 26 Dec 2002 21:46:28 +0100, Uwe Ziegenhagen <isestd14@wiwi.hu-berlin.de> wrote:
> 
> I even set (setq ls-lisp-dirs-first t) and (setq ls-lisp-ignore-case t), 
> but this is ignored.
> 
> 
> (add-hook 'dired-load-hook
> (lambda () (load-library "ls-lisp")))
> 
> [snip]
> 
> ; this should do it, but somehow doesn't work
> ;
> (setq ls-lisp-dirs-first t)
> (setq ls-lisp-ignore-case t)

You are setting the variables before their package is loaded. (when
`ls-lisp' is loaded they get default values according to your OS).

Do something like this:

(defun my-dired-changes ()
   "Set my preferences for dired"
    (require 'ls-lisp)  
    (require 'dired-explore)       ;I don't find these 
    (require 'dired-sort-menu)     ;packages in 21.2
    (setq ls-lisp-dirs-first t)
    (setq ls-lisp-ignore-case t))

(add-hook 'dired-load-hook 'my-dired-changes)

That will load the packages after the `dired' is loaded and THEN set
the needed variables.

Ehud.


-- 
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 mailto:ehud@unix.mvs.co.il                  Better  Safe  Than  Sorry

      reply	other threads:[~2002-12-29 17:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-26 20:46 How to have Emacs ignore Case and list Dirs first with dired-sort-menu Uwe Ziegenhagen
2002-12-29 17:34 ` Ehud Karni [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=200212291734.gBTHYetV006525@beta.mvs.co.il \
    --to=ehud@unix.mvs.co.il \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).