Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

emacs mouse shift-select from cursor point

can anyone point me in the right direction to globally define the activation of shift select with the left mouse button? I want to be able to select between the cursor point and the selected area... It is possible to drag-select only, and it is possible to shift-select via keyboard only.

This unfortunately doesn't work (in ~/.emacs):

(define-key global-map (kbd "<S-down-mouse-1>") 'shift-selection)

Machine: Win7, Emacs-Version: 25.1.1 (i686-w64-mingw32) of 2016-09-17

Thanks.

like image 936
Krisselack Avatar asked Jan 17 '26 04:01

Krisselack


1 Answers

(define-key global-map (kbd "<S-down-mouse-1>") 'mouse-save-then-kill)

https://superuser.com/questions/521223/shift-click-to-extend-marked-region

like image 168
rofrol Avatar answered Jan 19 '26 20:01

rofrol



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!