From: Noam Postavsky <npostavs@gmail.com>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: Directory name to variable (dired?)
Date: Mon, 8 Oct 2018 11:27:41 -0400 [thread overview]
Message-ID: <CAM-tV-_wHwxYXOUybSjqscfUbUWANhtr0ns=8hMVvxbybZswqA@mail.gmail.com> (raw)
In-Reply-To: <20181008151826.GF17855@mail.akwebsoft.com>
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.
next prev parent reply other threads:[~2018-10-08 15:27 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-07 21:49 Directory name to variable (dired?) Tim Johnson
2018-10-07 23:02 ` Drew Adams
2018-10-07 23:14 ` Tim Johnson
2018-10-08 0:02 ` Drew Adams
2018-10-08 0:20 ` Tim Johnson
2018-10-08 1:55 ` Drew Adams
2018-10-08 15:08 ` Tim Johnson
2018-10-08 15:18 ` Tim Johnson
2018-10-08 15:27 ` Noam Postavsky [this message]
2018-10-08 15:56 ` Drew Adams
2018-10-08 20:12 ` Stefan Monnier
2018-10-08 20:50 ` Tim Johnson
2018-10-07 23:18 ` Noam Postavsky
2018-10-08 0:05 ` Tim Johnson
2018-10-08 10:56 ` Noam Postavsky
2018-10-08 15:42 ` Tim Johnson
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAM-tV-_wHwxYXOUybSjqscfUbUWANhtr0ns=8hMVvxbybZswqA@mail.gmail.com' \
--to=npostavs@gmail.com \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.