0
我剛剛使用Ubuntu 12.04包管理器升級到最新版本的ESS。單獨的Emacs似乎工作正常,但Emacs不能與ESS(Emacs Speaks Statistics)一起使用。在ESS啓動後,我收到以下消息:ESS錯誤自動加載未能定義函數編譯 - 確保分析
post-command-hook錯誤:(錯誤自動加載未能定義函數編譯 - 確保解析)。
我該如何解決這個問題?
下面是我相當短暫.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.
'(TeX-view-program-selection (quote (((output-dvi style-pstricks) "dvips and gv") (output-dvi "xdvi") (output-pdf "Evince") (output-html "xdg-open"))))
'(scroll-bar-mode (quote right)))
(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 117 :width normal :foundry "unknown" :family "DejaVu Sans Mono")))))
;; ********* Beginning of customization ******************
;; assign word-wrapping mode
(global-visual-line-mode 1) ; 1=on, 0=off
;; speed up function evaluation
(setq ess-eval-visibly-p nil)
;; "Set font-lock colors to Richard Heiberger's wheat color scheme."
;; (set-foreground-color "Black")
;; (set-background-color "Wheat")
;; (set-face-foreground 'modeline "Wheat")
;; (set-face-background 'modeline "Sienna")
;; (set-face-foreground 'font-lock-comment-face "Firebrick")
;; (set-face-foreground 'font-lock-function-name-face "Blue")
;; (set-face-foreground 'font-lock-keyword-face "Purple")
;; (if (eq font-lock-reference-face 'font-lock-constant-face)
;; (set-face-foreground 'font-lock-constant-face "Brown")
;; (set-face-foreground 'font-lock-reference-face "Brown"))
(set-face-foreground 'font-lock-string-face "VioletRed")
;; (set-face-foreground 'font-lock-type-face "Sienna")
;; (set-face-foreground 'font-lock-variable-name-face "Black")
; count words in latex docs
(defun latex-word-count()
(interactive)
(shell-command (concat "/usr/bin/texcount "
"-inc "; texcount option (set to count documents included via \input)
(buffer-file-name))))
; that's [ctrl-c w] as the hotkey
(global-set-key (quote [f6]) 'latex-word-count)
;; ********* End of customization ******************
謝謝。升級到Emacs 24也解決了我的問題。 – rmd