如果窗口失去焦点,请隐藏光标?

时间:2015-10-05 16:14:53

标签: emacs

如果窗口失去焦点,是否可以隐藏光标?例如'windmove-left将焦点向左移动一个窗口,但仍然可以在不再活动的窗口中看到光标。

1 个答案:

答案 0 :(得分:5)

这是用户选项 cursor-in-non-selected-windows 的目的。

cursor-in-non-selected-windows is a variable defined in ‘C source code’.
Its value is t

  Automatically becomes buffer-local when set.

Documentation:
Non-nil means show a cursor in non-selected windows.
If nil, only shows a cursor in the selected window.
If t, displays a cursor related to the usual cursor type
(a solid box becomes hollow, a bar becomes a narrower bar).
You can also specify the cursor type as in the `cursor-type' variable.
Use Custom to set this variable and update the display.

You can customize this variable.
相关问题