我已经尝试了所有这些:
更改编码系统:
(prefer-coding-system 'iso-latin-1-unix)
确保没有翻译:
(add-untranslated-filesystem "C:")
(add-untranslated-filesystem "D:")
将多字节字符设置为nil:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(desktop-save-mode t)
'(enable-multibyte-characters nil))
这对我来说都不起作用。
我将Emacs 22.2.1与Cygwin一起使用。
GNU Emacs 22.2.1 (i386-mingw-nt6.1.7100) of 2008-03-26 on RELEASE
以下是我启动emacs的方法(请记住%~dp0将执行文件的dirname与路径分隔符放在一起):
@set PATH=c:\cygwin\bin;%~dp0;%PATH%
@start %~dp0runemacs.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
答案 0 :(得分:1)
检查此站点上第一个矩形中的代码以获取lisp解决方案
http://home.att.net/~Tom.Horsley/sitm-emacs.html
(setq inhibit-eol-conversion t)
(progn
; Stamp out the obnoxious setting of new files to CR-LF mode by
; default on w32 systems. Beacuse the dos-w32 function sets up these
; hooks when it is loaded, I need to load it merely so I can stamp out
; the hooks (never figured out how to keep it from being loaded in the
; first place - sigh....
(require 'dos-w32)
(remove-hook 'find-file-not-found-hooks 'find-file-not-found-set-buffer-file-coding-system)
)