* need to add to a menu
@ 2004-10-26 19:08 Billy N. Patton
2004-10-27 20:09 ` Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: Billy N. Patton @ 2004-10-26 19:08 UTC (permalink / raw)
On the menu Tools->Compile it will do a make -k and output to a buffer.
It will also add the menu Compile which will allow you to step through
errors, I like that.
I would like to add the the Tools menu the ability to do a
make install
make test
make docs
How do I add to an existing menu?
--
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodology Group
Dallas, Texas, 214-480-4455, b-patton@ti.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: need to add to a menu
2004-10-26 19:08 need to add to a menu Billy N. Patton
@ 2004-10-27 20:09 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2004-10-27 20:09 UTC (permalink / raw)
Billy N. Patton wrote:
> On the menu Tools->Compile it will do a make -k and output to a buffer.
> It will also add the menu Compile which will allow you to step through
> errors, I like that.
> I would like to add the the Tools menu the ability to do a
> make install
> make test
> make docs
>
> How do I add to an existing menu?
(defun make-install ()
"*Run `M-x compile RET make install RET'."
(interactive)
(compile "make install"))
(defun make-test ()
"*Run `M-x compile RET make test RET'."
(interactive)
(compile "make test"))
(defun make-docs ()
"*Run `M-x compile RET make docs RET'."
(interactive)
(compile "make docs"))
(define-key-after menu-bar-tools-menu [make-install]
'(menu-item "Compile command: make install" make-install)
'compile)
(define-key-after menu-bar-tools-menu [make-test]
'(menu-item "Compile command: make test" make-test)
'make-install)
(define-key-after menu-bar-tools-menu [make-docs]
'(menu-item "Compile command: make docs" make-docs)
'make-test)
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-27 20:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-26 19:08 need to add to a menu Billy N. Patton
2004-10-27 20:09 ` Kevin Rodgers
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.