由买买提看人间百态

topics

全部话题 - 话题: ctrlm
(共0页)
b**s
发帖数: 67
1
来自主题: Unix版 - Re: 为什么emacs自动给我加^M.
put following in your .emacs
(global-set-key [f5] 'cut-ctrlM) ; cut all ^M.
;; prevent echoing ^M in the shell (a hard one)
(add-hook 'comint-output-filter-functions 'shell-strip-ctrl-m nil t)
;if you encounter a file with ^M or ... at the end of every line,
;this means a worng copy by samba or floppy disk of the DOS file to UNIX.
;get rid of them by pressing [F5]
(defun cut-ctrlM ()
"Cut all visible ^M."
(interactive)
(beginning-of-buffer)
(while (search-forward "\
n******7
发帖数: 12463
2
来自主题: Programming版 - MS的操蛋control M问题怎么解决?
反了
另外去ctrlM去掉/r就好
(共0页)