From: David Reitter <david.reitter@gmail.com>
Cc: Kevin Rodgers <ihs_4664@yahoo.com>, Edward O'Connor <hober0@gmail.com>
Subject: Re: List of major modes? // "switch-to-mode"??
Date: Fri, 11 Nov 2005 12:27:21 +0000 [thread overview]
Message-ID: <87728210-D02C-4129-886F-C2D02891BC06@gmail.com> (raw)
Thanks for your help with this.
Here is my fusion of your code, not using the documentation strings,
but using apropos-internal to speed things up:
(apropos-internal
"-mode\\'"
(lambda (mode)
(and (commandp mode)
(not (string-match "\\`turn-\\(on\\|off\\)-"
(symbol-name mode)))
(not (assq mode minor-mode-alist)))))
Here's why I wanted this:
I'd like to come up with a function switch-to-buffer that could be
used interactively instead of M-x, with the advantage that completion
would only complete mode names, and it would be able to display a
list of modes (together with the first lines of their documentation
strings) .
Has anyone already written something like this? (or is there an Emacs
function that I don't know of...?)
next reply other threads:[~2005-11-11 12:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-11 12:27 David Reitter [this message]
2005-11-11 17:00 ` List of major modes? // "switch-to-mode"?? Drew Adams
2005-11-11 18:45 ` David Reitter
2005-11-11 19:04 ` Drew Adams
2005-11-11 19:30 ` Kevin Rodgers
-- strict thread matches above, loose matches on Subject: below --
2005-11-12 2:09 David Reitter
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=87728210-D02C-4129-886F-C2D02891BC06@gmail.com \
--to=david.reitter@gmail.com \
--cc=hober0@gmail.com \
--cc=ihs_4664@yahoo.com \
/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).