all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <11299@debbugs.gnu.org>
Subject: bug#11299: 24.1.50; Make `customize-mode' work for minor modes too, or define`customize-minor-mode'
Date: Sat, 21 Apr 2012 10:50:08 -0700	[thread overview]
Message-ID: <1F20E8C3A654469AAC7AD33CBE056921@us.oracle.com> (raw)
In-Reply-To: <1D21F2C43938448A96752150DE4F732D@us.oracle.com>

E.g., something like this:

(defun customize-mode (mode)
    "Customize options related to a major or minor mode.
By default the current major is used.
With a prefix argument or if the current major mode has no known group,
you are prompted for the MODE to customize."
    (interactive
     (list
      (let ((completion-regexp-list  '("-mode\\'"))
            (group                   (custom-group-of-mode major-mode)))
        (if (and group  (not current-prefix-arg))
            major-mode
          (intern (completing-read
                    "Mode: " obarray 'custom-group-of-mode
                    t nil nil (and group  (symbol-name major-mode))))))))
    (customize-group (custom-group-of-mode mode)))






  reply	other threads:[~2012-04-21 17:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-21 16:16 bug#11299: 24.1.50; Make `customize-mode' work for minor modes too, or define `customize-minor-mode' Drew Adams
2012-04-21 17:50 ` Drew Adams [this message]
2016-06-25  3:23 ` bug#11299: 24.1.50; Make `customize-mode' work for minor modes too, or define`customize-minor-mode' Noam Postavsky
2016-06-25  8:04   ` Eli Zaretskii
2016-06-25 17:35     ` Noam Postavsky
2016-06-25  8:04   ` Eli Zaretskii

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=1F20E8C3A654469AAC7AD33CBE056921@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=11299@debbugs.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.