all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* making a toolbar button globaly available
@ 2009-01-19 17:13 joakim
  2009-01-20  5:04 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: joakim @ 2009-01-19 17:13 UTC (permalink / raw)
  To: Emacs Development

I've tried these two aproaches, none seem to work.

Is it a bug or just me?

(define-minor-mode pocketcompletion-mode
       "Toggle pocketcompletion mode"
      ;; The initial value.
      :init-value nil
      ;; The indicator for the mode line.
      :lighter " pocketcompletion"
      ;; The minor mode bindings.
      :group 'pocketcompletion
      :global t
      :keymap
      '(([tool-bar pocketcompletion] . 
         (menu-item "pocketcompletion" pocketcompletion
                  :image (image :type xpm :file "zoom-in.xpm"))))
      (message "pocketcompletion minor body %s" pocketcompletion-mode)
      ;(pocketcompletion-enable-toolbar-button);2nd aproach, uncomment
      ;       this and comment out :keymap

      )


(defun pocketcompletion-enable-toolbar-button ()
  (define-key global-map [tool-bar pocketcompletion]
   '(menu-item "pocketcompletion" pocketcompletion
               :image (image :type xpm :file "zoom-in.xpm")))
  )



-- 
Joakim Verona




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

end of thread, other threads:[~2009-01-29 19:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-19 17:13 making a toolbar button globaly available joakim
2009-01-20  5:04 ` Stefan Monnier
2009-01-29 19:56   ` joakim

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.