all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.