Skip to main content
added 61 characters in body
Source Link

I'm using this in my .emacs file to make double-clicking the left mouse button run a command:

(global-set-key [(double-mouse-1)] 'some-command)

This only works in GUI mode; it doesn't work when running Emacs in the terminal. Is there some way for me to fix this? Or to detect double click events using some other mechanism? I have tried in a few different terminals without success. Tried Emacs 24.5.1 and 23.1.1.

Note that xterm-mouse-mode is enabled and other mouse functionality (like single-clicking or drag and drop to highlight text) works fine.

I'm using this in my .emacs file to make double-clicking the left mouse button run a command:

(global-set-key [(double-mouse-1)] 'some-command)

This only works in GUI mode; it doesn't work when running Emacs in the terminal. Is there some way for me to fix this? I have tried in a few different terminals without success. Tried Emacs 24.5.1 and 23.1.1.

Note that xterm-mouse-mode is enabled and other mouse functionality (like single-clicking or drag and drop to highlight text) works fine.

I'm using this in my .emacs file to make double-clicking the left mouse button run a command:

(global-set-key [(double-mouse-1)] 'some-command)

This only works in GUI mode; it doesn't work when running Emacs in the terminal. Is there some way for me to fix this? Or to detect double click events using some other mechanism? I have tried in a few different terminals without success. Tried Emacs 24.5.1 and 23.1.1.

Note that xterm-mouse-mode is enabled and other mouse functionality (like single-clicking or drag and drop to highlight text) works fine.

Source Link

Detecting double click when running from terminal

I'm using this in my .emacs file to make double-clicking the left mouse button run a command:

(global-set-key [(double-mouse-1)] 'some-command)

This only works in GUI mode; it doesn't work when running Emacs in the terminal. Is there some way for me to fix this? I have tried in a few different terminals without success. Tried Emacs 24.5.1 and 23.1.1.

Note that xterm-mouse-mode is enabled and other mouse functionality (like single-clicking or drag and drop to highlight text) works fine.