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: Drew Adams
Subject: RE: Directory name to variable (dired?)
Date: Mon, 8 Oct 2018 15:56:28 +0000 (UTC)

> >   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
>   thanks to everyone, good thread

Use `derived-mode-p', rather than test for equality.



reply via email to

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