如何使用< - 在ess-mode中停止emacs替换底线 [英] How to stop emacs from replacing underbar with <- in ess-mode

查看:89
本文介绍了如何使用< - 在ess-mode中停止emacs替换底线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.1
ess-mode release(unknown)

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]:按下划线( _)插入< - (如前所述);按下划线两次插入文字下划线。为了阻止这个聪明的行为,在加载原始网站之后,在你的.emacs中添加(ess-toggle-undercore nil)

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

这篇关于如何使用&lt; - 在ess-mode中停止emacs替换底线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆