4

有没有人设置 cygwin 和一些 emacs 在 64 位 Windows 7 下运行良好?

我最近尝试下载 cygwin,默认情况下甚至没有 dired 可靠地工作,有奇怪的 shell 提示符,我收到很多警告,在一种情况下 Cc 被读取为 Cg 并导致各种错误。(xemacs 和 emacs 都不适合我,这里的“工作”是指 dired 和 shell 工作,并且没有警告)。

我只想要通常的 emacs 开发工具:gdb-mode、shell-mode、编译、tag-search 能够正常工作。

我希望最近使用 cygwin 完成此操作的人可以共享任何相关的 shell 文件、emacs 文件、环境变量等,以使这一切正常工作。所有这些东西都应该开箱即用吗?

4

3 回答 3

1

您应该检查 ntemacs,在您的 .emacs 中使用此代码,一切都与 cygwin 一起工作得很好:

;; -- sets up cygwin
(let* ((cygwin-root "c:/cygwin")
  (cygwin-bin (concat cygwin-root "/bin")))
(when (and (eq 'windows-nt system-type)
  (file-readable-p cygwin-root))
(setq exec-path (cons cygwin-bin exec-path))
(setenv "PATH" (concat cygwin-bin ";" (getenv "PATH")))
(setq shell-file-name "bash")
(setenv "SHELL" shell-file-name) 
(setq explicit-shell-file-name shell-file-name) 
(add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m)))
于 2010-05-21T17:55:36.023 回答
0

我使用“本机”Win32 emacs 的可怕的科学怪人组合(http://alpha.gnu.org/gnu/emacs/pretest/windows/emacs-23.1.97-bin-i386.zip是最新的,但我使用旧版本)和 Cygwin——用于 bash、find 等。我花了好几年的时间来调整我喜欢的东西,但它仍然是一个相当坎坷的经历。

总之值得一试。

于 2010-05-12T02:48:34.623 回答
0

我使用来自 Cygwin 的 Emacs、gcc、gdb、make 等的直接全新安装(目前是 1.7.15,但我已经这样做了多年)和我的标准点文件(.emacs、.bashrc/.bash_profile)被调整(但不是很重)可以在 Linux 和 Cygwin 之间移植,一切对我来说都很好。偶尔我会遇到问题(比如processing2-mode,其中 Processing 还没有 Cygwin 包,所以它需要本地 Windows 路径,但这很容易修复并且与众不同。在我看来,这几乎听起来像是从根本上破坏了关于你的设置;你能提供更多细节吗?否则我只能推荐擦拭并重新安装。

于 2013-02-21T21:54:50.133 回答