Advertisement
Guest User

Doesn't working version of «mouse-set-region»

a guest
Sep 7th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.25 KB | None | 0 0
  1. (defun mouse-set-point-highlight-matches (ignored)
  2.   (interactive "e")
  3.   (re-search-backward "\\b")
  4.   (push-mark (point))
  5.   (re-search-forward "\\b")
  6.   (setq mark-active t))
  7.  
  8. (global-set-key (kbd "<double-mouse-1>") 'mouse-set-point-highlight-matches)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement