是否有一种模式可以让我通过鼠标单击或按键将光标放置在屏幕上的任何位置(包括行尾之后)?
编辑:
一种基于图片模式的次要模式,它完全符合问题的要求。
(define-minor-mode free-point-mode
"Place the cursor anywhere on the screen, irrespective of linebreaks, by clicking or using the arrow keys"
nil nil
`((,(kbd "<mouse-1>") . picture-mouse-set-point)
(,[remap right-char] . picture-forward-column)
(,[remap left-char] . picture-backward-column)
(,[remap previous-line] . picture-move-up)
(,[remap next-line] . picture-move-down))
(require 'picture))
(defadvice picture-mouse-set-point (after no-region activate)
(deactivate-mark))