[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.
- Directory name to variable (dired?), Tim Johnson, 2018/10/07
- RE: Directory name to variable (dired?), Drew Adams, 2018/10/07
- Re: Directory name to variable (dired?), Tim Johnson, 2018/10/07
- RE: Directory name to variable (dired?), Drew Adams, 2018/10/07
- Re: Directory name to variable (dired?), Tim Johnson, 2018/10/07
- RE: Directory name to variable (dired?), Drew Adams, 2018/10/07
- Re: Directory name to variable (dired?), Tim Johnson, 2018/10/08
- Re: Directory name to variable (dired?), Tim Johnson, 2018/10/08
- Re: Directory name to variable (dired?),
Noam Postavsky <=
- RE: Directory name to variable (dired?), Drew Adams, 2018/10/08
- Re: Directory name to variable (dired?), Stefan Monnier, 2018/10/08
- Re: Directory name to variable (dired?), Tim Johnson, 2018/10/08
Re: Directory name to variable (dired?), Noam Postavsky, 2018/10/07