From: Drew Adams <drew.adams@oracle.com>
To: Joe Riel <joer@san.rr.com>, Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: RE: using easy-menu-add-item to add a separator before item
Date: Sun, 11 May 2014 12:39:00 -0700 (PDT) [thread overview]
Message-ID: <9877e245-c03e-4789-be9f-dcef66cf3103@default> (raw)
In-Reply-To: <20140511120656.69cbf8ed@gauss>
> I have not been able to figure out how to get easy-menu-add-item
> to add a separator before an added item.
>
> The following works (no separator).
>
> (easy-menu-add-item nil '("Modelica") ["Check syntax" modelica-check-
> syntax-buffer t]))
>
> I'd prefer to add a separator before. I tried the following
>
> (easy-menu-add-item nil '("Modelica") "-")
> (easy-menu-add-item nil '("Modelica") ["Check syntax" modelica-check-
> syntax-buffer t])
>
> but it gives the same result. How can I do this?
I do it this way:
(easy-menu-add-item facemenu-menu () ["---" nil] 'dp)
prev parent reply other threads:[~2014-05-11 19:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-11 19:06 using easy-menu-add-item to add a separator before item Joe Riel
2014-05-11 19:39 ` Drew Adams [this message]
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=9877e245-c03e-4789-be9f-dcef66cf3103@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=joer@san.rr.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.
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.