unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* using easy-menu-add-item to add a separator before item
@ 2014-05-11 19:06 Joe Riel
  2014-05-11 19:39 ` Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Riel @ 2014-05-11 19:06 UTC (permalink / raw)
  To: Help GNU Emacs

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?

-- 
Joe Riel


-- 
Joe Riel




^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: using easy-menu-add-item to add a separator before item
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2014-05-11 19:39 UTC (permalink / raw)
  To: Joe Riel, Help GNU Emacs

> 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)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-11 19:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).