|
|
发表于 2005-1-4 23:03:45
|
显示全部楼层
我感觉不自动换行挺好的,要不然出现了emacs设定宽度不一样的情况就会使文本内容显得参差不齐. 用下面这个函数或许能使你移动的快很多,尤其是句子长时, 你可以连续再逗号上移动, C-c a ,,,,,,
(defun go-to-char (n char)
"Move forward to Nth occurence of CHAR. Typing 'go-to-char-key' again will move forwad to the next Nth occurence of CHAR."
(interactive "p\ncGo to char: ")
(search-forward (string char) nil nil n)
(while (char-equal (read-char) char)
(search-forward (string char) nil nil n))
(setq unread-command-events (list last-input-event)))
(define-key global-map (kbd "C-c a") 'go-to-char) |
|