【发布时间】:2011-05-22 01:36:13
【问题描述】:
我经常发现自己在 ESS 缓冲区中运行着一堆 R 进程。有一个方便的 Lisp 函数 ess-request-a-process 请求 R 进程,并将其放在前面。唯一的缺点是它默认为 S,所以每次我要进行切换时,我都必须输入 R,令人作呕。
我尝试自定义 ess-language 变量,但即使我将值设置为“R”,即当前会话的 4,或者即使我为未来会话保存设置,只要我键入 C-c C-k,就会自动S 再次出现。这很烦人,我真的不想以C-x C-b 结束,然后以C-s 结束所需的 R 会话! =)
我什至尝试在.emacs 中设置(setq-default ess-language "R"),但没有成功...
顺便说一句,我在 Linux Mint 上运行 Emacs v. 23.1.1,在 Arch Linux 上运行 Emacs v. 23.2,以及 ESS v. 5.12。如果这是相关的,我会使用 -nw 参数从终端运行 Emacs。这是我的.emacs:
;; start server
(server-start)
;; load ESS
(require 'ess-site)
(require 'ess-rutils)
;; set HTML help as default
(setq inferior-ess-r-help-command "help(\"%s\", help_type = \"html\")\n")
(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.
'(ess-help-kill-bogus-buffers t)
'(ess-rutils-keys nil)
'(show-paren-mode t))
(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.
)
(put 'upcase-region 'disabled nil)
那么...如何一劳永逸地设置R? (我不使用 S/S+/SAS)
【问题讨论】:
标签: r emacs customization ess