Search code examples
emacskey-bindings

emacs artist-mode bind right click to menu


I'd realy like to use emacs-artist mode to document my code as seen here: http://www.cinsk.org/emacs/emacs-artist.html

But I can't access the menu like in the screen cast. It seems that the menu is boud to the 3rd (middle) mouse button. But my mouse has only 2 buttons.

How can I reconfigure my emacs key binding for emacs artist-mode that it uses the 2nd (right) mouse button for the menu?

I'd like to set the binding only for artist-mode of course.

Thank you for your help!


Solution

  • This is what I put in my .emacs.el

    (eval-after-load "artist"
       '(define-key artist-mode-map [(down-mouse-3)] 'artist-mouse-choose-operation)
       )
    

    Thanks for the right hints!