Emacs ESS Mode - Tabbing for Comment Region

前端 未结 4 1210
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-08 00:00

I am using the Emacs-Speaks-Statistics (ESS) mode for Emacs. When editing R code, any comment lines (those starting with #) automatically get tabbed to the far right when I

4条回答
  •  既然无缘
    2020-12-08 00:44

    Either

    (setq ess-fancy-comments nil)
    

    if you never want to indent single-# comments, or

    (add-hook 'ess-mode-hook 
              (lambda () 
                (local-set-key (kbd "RET") 'newline)))
    

    if you want to change the behavior of Enter so it doesn't indent.

提交回复
热议问题