问题描述
打开 xterm-mouse-mode 后,在屏幕上的任何点击都会返回mouse-1 is undefined".我应该将mouse-1"定义为什么?是否有某种原因我的鼠标点击会返回此事件,而不是其他原因?
我把这个放在我的 .emacs 中:
(需要'鼠标)(xterm 鼠标模式 t)(defun 跟踪鼠标 (e))(setq mouse-sel-mode t)
这似乎可以解决问题,现在在拆分中单击鼠标会将焦点更改为拆分.
注意:我使用的是 iterm2,我在这里找到了信息:http://groups.google.com/group/iterm2-discuss/browse_thread/thread/8e1f2ee7db26c07d/17ac15e69c554998?show_docid=17ac15e69c554998&pli=1 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 clicks are returning this event, and not others its suspecting? I put this in my .emacs: 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 这篇关于如何让鼠标选择在 Mac 上的 emacs 和 iTerm2 中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!(require 'mouse)
(xterm-mouse-mode t)
(defun track-mouse (e))
(setq mouse-sel-mode t)