emacs artist-mode bind right click to menu - emacs

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!

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!

FWIW, the right button is the one Emacs calls mouse-3 and the middle buttong is the one Emacs calls mouse-2. You should report this problem via M-x report-emacs-bug because I think it's a bug.
You can fix this problem with something like:
(define-key artist-mode-map [down-mouse-3] 'artist-mouse-choose-operation)

Related

DOOM emacs Move Cider REPL windows vertical

I'd like to ask how to move cider repl in DOOM, from horizontal (screenshot below) to vertical? been trying many menus shortcut but still horizontal.
Thanks you so much
enter image description here
As was already mentioned, in DOOM this REPL window is transformed into a popup, and you can customize it in your .doom.d/config.el:
(after! cider
(set-popup-rules!
'(("^\\*cider-repl"
:side right
:width 100
:quit nil
:ttl nil))))
The easiest thing to achieve this is by splitting the windows vertically before jacking into Cider. I.e., in your source code file, hit C-x 3 which calls split-window-right.
Of course, you could write a small Elisp function to call this before jacking into Cider (you might want a defadvice), but you would have to check your current window layout first, so I never bothered to do this.
Doom uses a pop-up for the REPL window, so the simplest way would be to disable popups. Otherwise, you can maximize the popup (Ctrl ~), and split the window vertically...

How to navigate by clicking with your cursor in Unix?

So when I am writing in Unix in the emacs editor it is not possible to change lines I wrote before by clicking on that particular part. Now I have to use my arrows on the keyboard and that takes a lot of time. Anyone suggestions?
I assume you're asking about using a mouse in a terminal. If so, use xterm-mouse-mode by running M-x xterm-mouse-mode or adding (xterm-mouse-mode 1) to your init.el.

how to get rid of text beside emacs toolbar buttons

Running under ubuntu, emacs has a text description of buttons in the toolbar, even have something like
|(separator)
which is really annoying.
Look at the variable tool-bar-style. You can do this with C-h v. You can then either click the "customize" button at the bottom of the help buffer, or you can just evaluate
(setq tool-bar-style 'image)

How can I select emacs autocomplete options with keyboard (not arrow keys)

I am wanting to choose from emacs autocomplete options without using the arrow keys. In vim this would be accomplished with Ctrl-n and Ctrl-p but doing the same in emacs moves me to the next line. Is there a keyboard shortcut I can use to do this? I know I could probably make a keybinding for this myself but I wanted to know if there was something idiomatic already there.
In auto-complete you can select next candidates using M-n and previous candidates using M-p. Here is a link to the manual

Disable auto-complete's pop-up menu in emacs

How to disable auto-complete's pop-up menu from showing up? I would simply like one simple suggestion much like in googles' suggestions (and also implemented in auto-complete itself).
Strangely it shows this in grey right before the pop up menu, how to make it stay like that?
Adding the following line to your init file should do the trick.
(setq ac-auto-show-menu nil)