How can I get mouse selection to work in emacs and iTerm2 on Mac?

后端 未结 4 1387
遇见更好的自我
遇见更好的自我 2020-12-23 02:03

after turning on xterm-mouse-mode, any click on the in the screen returns \"mouse-1 is undefined\". What should I be defining \"mouse-1\" as? Is there some reason my mouse

4条回答
  •  不思量自难忘°
    2020-12-23 02:53

    I put this in my .emacs:

    (require 'mouse)
    (xterm-mouse-mode t)
    (defun track-mouse (e)) 
    (setq mouse-sel-mode t)
    

    and that seems to do the trick, and now a mouse click in a split changes focus to the split.

    Note: I am using iterm2, and I found the info here: http://groups.google.com/group/iterm2-discuss/browse_thread/thread/8e1f2ee7db26c07d/17ac15e69c554998?show_docid=17ac15e69c554998&pli=1

提交回复
热议问题