有没有一种模式可以让我通过鼠标单击或按键在屏幕上的任何位置(包括行末)放置光标?
编辑:
一个基于picture-mode的小模式,确切地做到了问题所问。
(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))