help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Directory name to variable (dired?)


From: Noam Postavsky
Subject: Re: Directory name to variable (dired?)
Date: Mon, 8 Oct 2018 11:27:41 -0400

On Mon, 8 Oct 2018 at 11:18, Tim Johnson <tim@akwebsoft.com> wrote:

> >   To determine if a buffer is a dired buffer, it seems that I can
> >   verify that by evaluating `dired-omit-mode
> >
> >   Is there a more idiomatic way to do so?
>   Duh! Asked and answered: Probably
>   something like (eq (major-mode) "dired-mode") ;; untested

You'll want to single quote 'dired-mode the symbol for `eq'
comparisons. Possibly use the `derived-mode-p' function instead.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]