[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to use 'easy-menu'?
From: |
Sharon Kimble |
Subject: |
Re: how to use 'easy-menu'? |
Date: |
Sat, 29 Nov 2014 13:56:55 +0000 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
>> #+BEGIN_SRC emacs-lisp
>> (easy-menu-add-item ;; console
>> nil nil
>> (easy-menu-create-menu
>> "Mine"
>> '("Misc" ;; submenu
>> ["Wrap Text" auto-fill-mode]
>> ["List packages for update" paradox-list-packages]
>> ["Get colours" list-colors-display]
>> ["Delete this file" delete-this-file]
>> ["? stack-overflow" howdoi-query]
>> ["shell" shell]
>> ["password-vault" password-vault]
>> ["Start org-mode" org-mode]
>> ["insert drawer" org-insert-property-drawer]
>> ["new buffer" xah-new-empty-buffer]
>> ["w3m open new site" w3m-open-site]
>> ["w3m buffer to org-style" w3m-get-buffer-with-org-style]
>> ["new latex" fc-insert-latex-skeleton]
>> ["cleanup buffer" buffer-cleanup]
>> ["toggle page lines" linum-mode]
>> )
>> '("Clock" ;; submenu
>> ["In" org-clock-in]
>> ["Out" org-clock-out]
>> ["Resolve" org-resolve-clocks]
>> ["Goto" org-clock-goto]
>> )
>> ))
>> #+END_SRC
>>
>
>> ╭────
>> │easy-menu-add-item: Wrong number of arguments: (2 . 2), 3
>> ╰────
>
> Is that really the correct error message? Because when I try it,
> easy-menu-create-menu raises the error. Which is expected, because
> easy-menu-create-menu only accepts two args, but you call it with 3.
>
> Michael.
Thanks Michael, and that is what it said. From much investigation
this morning I've found that it was objecting to "nil nil", remove
that and its hunky-dory again.
Sharon.
--
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.4.1.0
signature.asc
Description: PGP signature