【发布时间】:2014-02-04 06:43:55
【问题描述】:
我的 .emacs 文件中的旧的、可靠的(set-cursor-color "#aa88dd")会因 Aquamacs 而失败,除非它在 Aquamacs 启动后运行。这种类型的失败是 Emacs 在启动期间做一些秘密的典型,但我不知道是什么。我修改并保存了光标的 Aquamacs 设置(光标面:背景:),它适用于会话,并保存设置,但没有为下一个会话正确初始化。即便如此,我还是有一个鲜红色的光标。
工作 Emacs:GNU Emacs 23.2.1(i686-apple-darwin,NS apple-appkit-1038.29)
失败的 Aquamacs:GNU Emacs 23.3.50.1(i386-apple-darwin9.8.0,NS apple-appkit-949.54)
1) 解决方法和修复表示赞赏。目前我正在使用 23.2.1。我不觉得有必要升级,但迟早我必须升级。
2) 搜索互联网一无所获。我怀疑这个问题是与其他问题相关的问题,即 Aquamacs 无法确定某些设置并选择红色作为光标颜色。有没有什么技巧可以让 Emacs 将每个加载的配置文件的名称打印到 Messages 中?
3) 相关大图问题:一般有没有办法强制新版本的 Emacs 表现得像旧版本一样?它将解决我当前的问题,以及新版本偶尔发生的剧变。
下面是 Aquamacs 定制化.el,它似乎已正确保存了光标背景。我没有编辑这个文件。将 (cursor...) 语句添加到我的 .emacs custom-set-variable 没有任何效果。
(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.
'(cua-mode nil nil (cua-base))
'(cua-normal-cursor-color "#aa88dd")
'(cursor-type (quote box))
'(ess-S-assign "_")
'(ido-everywhere t)
'(ido-show-dot-for-dired t)
'(line-move-visual nil)
'(term-bind-key-alist (quote (("C-c C-x b" . switch-to-buffer) ("C-c M-x" . execute-extended-command) ("C-c C-c" . term-interrupt-subjob) ("M-`" . other-frame) ("C-m" . term-send-raw))))
'(term-unbind-key-list (quote ("C-c"))))
(custom-set-faces
;; custom-set-faces 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.
'(default ((t (:inherit nil :stipple nil :background "White" :foreground "black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 210 :width normal :foundry "apple" :family "Inconsolata"))))
'(cua-normal-cursor-color "#aa88dd")
'(cursor ((t (:background "#AA88DD" :foreground "black" :box nil)))))
【问题讨论】:
-
帮自己一个忙,避开 Aquamacs。它已经过时,几乎没有维护。相反,使用来自emacsformacosx.com 的普通 GNU Emacs 24.3 预测试。
-
那行得通。我认为我的“工作”版本是 emacsformacosx。它具有相同的图标,相同的安装路径,并且光标设置有效。我很久以前就安装了它,没有做笔记。一个更完整的答案可能会很有趣,但我还有工作要做。潜伏者注意:emacsformacosx 是真正的 Emacs,它是一个普通的 MacOS 应用程序,不需要 X-Windows。
标签: macos emacs dot-emacs aquamacs