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.