Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mouse]

for Emacs support of mouse. Emacs mouse interface supports click events, drag events, button-down events, and motion events. Whereas the current buffer handles keystrokes, mouse events in a clicked buffer are independent of the current buffer.

5
votes
3answers
243 views

Turn off mouse highlighting in org-agenda

When I am viewing my org-agenda, whatever line I have the mouse point on is highlighted. Since I never act on these lines with the mouse, and since the line where point is is also highlighted, the ...
3
votes
2answers
1k views

Mouse pointer between characters and the text cursor misplacement

Mouse cursor position interpretation in emacs drives me nuts. Why draw the mouse cursor in emacs window with vertical thin bar if you cannot effectively position it between characters? Selecting ...
0
votes
1answer
143 views

Yank from mouse in helm modes

For many built-in commands that require user input in the minibuffer I can yank from the middle mouse button (mouse-yank-primary with <down-mouse-2>). Some examples where this works are rgrep, ...
2
votes
1answer
143 views

Expand/shrink region after double-clicking mouse-1

How can I change the default double-mouse-1 word selection behavior so that I can move the point around right afterwards to extend/shrink the region? By default, if I forward/backward-char after ...
2
votes
1answer
159 views

Right-click to select one character under the mouse pointer?

I'm using GUI emacs 24.4.9.0, so I can click to move the cursor, and double-click to select a word under the mouse pointer as a region. How can I configure emacs so that right-click selects a ...
4
votes
1answer
46 views

Obtain points at beginning/ending of visual line without using vertical-motion

Q:  How to obtain the points at the beginning and ending of each visual line of the current window -- without using vertical-motion -- when word-wrap is t (aka visual-line-mode). For this experiment, ...
0
votes
0answers
96 views

Double-Mouse-1 doesn't do selection

When I do a double click, I don't see any selection. Is there anything I need to enable to make it work? Other mouse functionalities work fine. See http://www.gnu.org/software/emacs/manual/html_node/...
0
votes
2answers
81 views

Copy and paste with mouse breaks Umlaute

After upgrading to emacs 24 I have strange problems with copy and paste. I managed to reinstall copy and paste with the mouse but there remains the problem with German diacritic characters. If I copy ...
6
votes
4answers
181 views

Is there a way to determine the face at frame x / y (mouse position)?

When trying to theme certain modes, it's not possible to place the point on the themed item (e.g. to do C-u C-x =) and identify the face used. My thought is to use the mouse to identify the face used,...
1
vote
1answer
142 views

How to set mouse left click and hold to copy in helm-mode

I'm using helm-mode in emacs to open files. However, when I try to copy the path of a file (say /home/user1/Documents/file1.txt) to paste it in terminal, I get a message saying <down-mouse-1> ...
4
votes
2answers
960 views

Terminal Emacs not receiving <wheel-up> or <wheel-down>?

From what I understand, I should be able to get mouse scrolling to work in emacs nox mode with the following: (require 'mouse) (xterm-mouse-mode t) (mouse-wheel-mode t) (global-set-key (kbd "<...
1
vote
1answer
221 views

Mouse click on links does not work

Somehow my left mouse click does not work on links anymore. I can put the cursor, hit Return and get a link opened. But a mouse click gives this on the "Message" buffer: call-interactively: Wrong ...
4
votes
3answers
987 views

Is it possible to disable the support for the mouse in GUI?

I can't believe there is no way in Emacs to easily and reliably ignore the mouse but my google fu seems not good enough to find how to do it. By easily and reliably I mean to disable the device, not ...
2
votes
0answers
70 views

Is it possible to use the mouse wheel for company mode?

I'm using the Cocoa version of Emacs. When company mode presents a list of completions you can use the mouse to select one. It would seem natural to be able to use the mouse wheel to scroll through ...
2
votes
1answer
114 views

Debugging / understanding placement of keymap with text-properties

Q:  Why does there appear to be a keymap on the hyphen of hello-world in the following example? GOAL:  Place text properties before the hyphen and after the hyphen -- without any keymap being placed ...
3
votes
1answer
77 views

A dual-purpose function for keyboard shortcut and mouse

Is it possible to combine the following two functions so that the combined function will work with the keyboard keys (e.g., [return]) and also work with the mouse buttons? If so, how please? ...
2
votes
2answers
186 views

Any way to select a region using `S-down-mouse-1` without saving the region as a kill?

Using emacsw32. The usual suggested way to make a selection using S-down-mouse-1 is to bind that to mouse-save-then-kill. Is there a similar command which selects a region, but does not save the ...
2
votes
0answers
35 views

Control or set the emacs mouse button event polling rate?

I have been using artist-mode and noticed that even at moderate mouse movement speeds the mouse event polling rate (here for down-mouse-1) does not seem to keep up (so lines end up with scattered ...
5
votes
1answer
125 views

`mouse-1` (button 1) follows links, like `mouse-2` does - how to modify the behavior?

I'm a beginner in Emacs. In dired+, if I query the mouse click on a directory item with C-h k, I get the following: ----------------- up-event (short click) ---------------- <mouse-2> at ...
23
votes
3answers
1k views

Smooth (mouse) scroll for inline images?

I display images in-line with begin_src & result blocks. However, for large-images, when I scroll past the bottom of the image, I get a 'jerk' and the whole image is scrolled away. Similarly if I ...
1
vote
1answer
175 views

How to move point with mousepointer on shift-click in emacs

I want to write some functionality that fires whenever I shift-click a point in an emacs buffer. Problem is that when shift is pressed, the point is not changing when clicking. To make things more ...
7
votes
2answers
501 views

Clear secondary selection without using mouse

Occasionally, without meaning to I somehow mash keys or mouse so that I get a secondary selection. I never use the secondary selection so I would always like to get rid of it. How can I clear the ...
1
vote
0answers
138 views

Unicode character escape sequences instead of text upon mouse-2 paste from other windows

I am having a weird problem with emacs: When pasting non-ascii text, e.g. € from X-clipboard with the middle mouse button into x-enabled emacs I get Unicode character escape sequences, e.g. \u20ac ...
3
votes
2answers
250 views

Mouse problem in org-mode export window

When in org-mode, running the export command will open a windows with all the export options. However, my mouse scroll behaves erratically and I am not able to scroll down or move at all, not even by ...
6
votes
2answers
803 views

Preventing mouse clicks in inactive windows from repositioning the cursor

When I have Emacs (24.4, Mac OS, NS build) in the foreground, I often have many windows open in one frame. I sometimes want to switch windows by clicking in an inactive window. By default, this calls ...
6
votes
1answer
1k views

Enable Emacs column selection using mouse

How to use mouse to select column in Emacs? How to enable it? The emacs wiki RectangleMark says, there is mouse support for rectangle highlighting by dragging the mouse while holding down the ...
0
votes
2answers
650 views

Emacs on Android - org-mode - error - `(wrong-type-argument stringp (require . t-mouse))`

I'm running Emacs in Android under ZShaolin, with whatever the default configuration is. When I open an org-mode file (or try to enable org-mode), I get an error: (wrong-type-argument stringp (...
4
votes
2answers
452 views

How to make mode-line text look like a link/button on hover

What face/text/other property should I use to have mode-line text look like a button/link/stuff to click on while I am hovering over it with the cursor? Some examples: different background, 3D-like ...
7
votes
2answers
2k views

How to change the mouse pointer colour?

I am using the ample theme and I quite like it, but I can't see the mouser pointer when moving over emacs and emacs is activated; as the emacs background and the mouse pointer are black, I would like ...
3
votes
2answers
876 views

How to disable copy on selection with evil-mode (Mac/24.4)?

This only occurs when I turn evil-mode on! Whenever I make a selection, either through evil or the mouse, the selection gets automatically copied into the clipboard. I have set (setq select-active-...
3
votes
1answer
220 views

how to reveal function names that are bound to mouse buttons (eg <down-mouse-1>)?

Emacs buttonizes specific expression in the buffers. For example, email ids, urls attachments in gnus buffer, and [back], [forward] in help buffers and so on. When we click on those with mouse, they ...
7
votes
1answer
692 views

Simulating mouse operations with keyboard

Is there a way, via some command that can be invoked by the keyboard, of making Emacs think that I clicked at a particular point (so that it does whatever it would have done if I clicked there, e.g. ...
5
votes
1answer
211 views

Inadvertent paste when correcting spelling mistakes using flyspell

When I click with the middle mouse button that usually inserts the primary selection at the point where I clicked. However, the same button opens flyspell's context menu when I click on a misspelled ...