How to stop emacs from replacing underbar with <- in ess-mode

前端 未结 6 1338
有刺的猬
有刺的猬 2020-12-13 16:59

ess-mode is \"Emacs speaks statistics.\" This mode is useful for editing programs for R or Splus (two separate statistics packages).

In my buffer, when

6条回答
  •  我在风中等你
    2020-12-13 17:46

    Since the feature is useful. You can assign it to other key which is less used by you in R it will automatically unassign it from underscore. I personally assign it to ";" by adding following line in .emacs file.

    (setq ess-smart-S-assign-key ";")
    

    My version of emacs is 24.3 All-in-one installation file by Vincent Goulet.(Installed on windows 7)

    hope this helps

    Edit In emacs 25.2 above do not work instead add following in the .emacs file

    (setq ess-smart-S-assign-key ";")
    (ess-toggle-S-assign nil)
    (ess-toggle-S-assign nil)
    

提交回复
热议问题