我的.emacs文件中舊的可靠(set-cursor-color「#aa88dd」)失敗,Aquamacs失敗,除非它在Aquamacs啓動後運行。這種類型的失敗是Emacs在啓動時做了一些祕密的典型事情,但我無法弄清楚。我修改並保存了Aquamacs設置光標(光標face:background :),它適用於會話,並保存設置,但不會爲下一個會話正確初始化。即便如此,我還是有一個明亮的紅色光標。aquamacs紅色光標
工作的Emacs:GNU Emacs的23.2.1(i686的,蘋果達爾文,NS蘋果了AppKit-1038.29)
失敗Aquamacs:GNU Emacs的23.3.50.1(I386-蘋果darwin9.8.0,Apple蘋果NS appkit-949.54)
1)讚賞解決方法和修復。目前我正在使用23.2.1。我不覺得有必要升級,但遲早我不得不這樣做。
2)搜索interwebs什麼都沒有。我懷疑這個問題是一個與其他問題有關的紅鯡魚,其中Aquamacs無法確定某些設置並選擇Red作爲光標顏色。是否有一招讓Emacs將每個加載的配置文件的名稱打印到消息?
3)相關的大圖問題:通常有一種方法來強制Emacs的新版本像舊版本一樣行事嗎?它將解決我目前的問題,以及偶爾在新版本中發生的劇變。
下面是Aquamacs customizations.el,它似乎已經正確保存了光標背景。我沒有編輯這個文件。將(遊標...)語句添加到我的.emacs自定義設置變量沒有效果。
(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。它已經過時並且幾乎沒有維護。相反,請使用http://emacsformacosx.com/中的普通GNU Emacs 24.3預測試。 – lunaryorn 2013-02-19 15:16:35
這很有效。我認爲,我的「工作」版**是** emacsformacosx。它具有相同的圖標,相同的安裝路徑以及光標設置。我很久以前安裝了它,並沒有記錄筆記。更完整的答案可能很有趣,但我有工作要做。注意潛伏者:emacsformacosx是真正的Emacs,它是一個普通的MacOS應用程序,不需要X-Windows。 – infogizmo 2013-02-19 22:32:21