如何阻止 emacs 在 ess-mode 中用 <- 替换下划线 [英] How to stop emacs from replacing underbar with <- in ess-mode
问题描述
ess-mode
是Emacs 说统计".此模式对于编辑 R 或 Splus(两个独立的统计包)程序很有用.
ess-mode
is "Emacs speaks statistics." This mode is useful for editing programs for R or Splus (two separate statistics packages).
在我的缓冲区中,每当我键入 _
时,该字符都会被替换为 <-
,这非常令人沮丧.是否有 emacs lisp 语句来关闭此行为?
In my buffer, when ever I type _
the character is replaced with <-
, which is very frustrating. Is there an emacs lisp statement to turn off this behavior?
emacs:22.1.1ess-mode 发布(未知)
emacs: 22.1.1 ess-mode release (unknown)
推荐答案
来自 ESS 的手册(查看5.2.0 中的更改/新功能"):
From ESS's manual (look under "Changes/New Features in 5.2.0"):
ESS[S]: 按下划线 ("_") 一次插入 " <- " (和以前一样);按下划线两次插入文字下划线.要阻止这种智能行为,请在加载 ess-site 后将(ess-toggle-underscore nil)"添加到您的 .emacs 中
ESS[S]: Pressing underscore ("_") once inserts " <- " (as before); pressing underscore twice inserts a literal underscore. To stop this smart behaviour, add "(ess-toggle-underscore nil)" to your .emacs after ess-site has been loaded
这篇关于如何阻止 emacs 在 ess-mode 中用 <- 替换下划线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!