2012-10-23 40 views
2

是否有一種模式允許我通過鼠標單擊或通過按鍵將光標置於屏幕的任何位置(包括行結束後)?用於「自由」光標定位的Emacs模式

編輯:

基於圖片模式,它不exactactly問什麼問題的次要模式。

(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)) 
+0

結帳'圖片模式' –

+0

如果您將其作爲答案,我可能會接受它。它也可以作爲覆蓋模式,但是基於它的輕微模式應該很容易。 – sabof

回答

5

picture-mode讓您將光標定位在屏幕的任何位置。不要讓名字騙了,這不是關於圖片:

編輯做出來的文本字符(例如圖片,寄存器分工的圖片 成多個區域,如一個評論程序), 使用命令Mx圖片模式進入圖片模式。