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

前端 未结 6 1345
有刺的猬
有刺的猬 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:45

    A more recent version which seemed to work for me, and is a lot less verbose (you essentially keep normal underscores, but can set your own key for this smart behaviour!):

    (global-set-key (kbd "C-;")  (lambda () (interactive) (insert " <- ")))
    (ess-toggle-underscore nil)
    

    Insert your shortkey choice instead of C-;.

提交回复
热议问题