Suppose I want to select some text (mark a region) using my mouse, but without dragging. What I normally do (in most apps but
- click with the left button of my mouse (
- release my mouse, in to leave the cursor where I want the selection to begin;
- press and hold the shift key;
- and finally click (
down-mouse-1) again in the place of the text where I want the selection to end.
However, I cannot do this with
emacs, because in step 4 a context menu pops up (
Change default buffer face), and my selection gets lost.
I've tried remapping
<S-down-mouse-1> to several other commands, with no success.
Does someone know how to accomplish this feat in
emacs 24.2 on
Xubuntu 12.04 and also on
Mac Os X 10.8 (Cocoa Emacs); I'm using
I have just tried this code, as suggested here, but also with no success.
;; shift + click select region (define-key global-map (kbd "<S-down-mouse-1>") 'ignore) ; turn off font dialog (define-key global-map (kbd "<S-mouse-1>") 'mouse-set-point) (put 'mouse-set-point 'CUA 'move)