发布于 2009-08-11 22:56:40
发布于 2010-03-19 01:23:32
从5.9版本开始,ESS将使用Rscript或litter解释器识别脚本;请参阅http://ess.r-project.org/Manual/ess.html#New-features。
作为参考,要将模式分配给解释器,请使用解释器模式列表变量。例如,
(add-to-list 'interpreter-mode-alist '("Rscript" . r-mode))任何第一行类似"#!/usr/bin/Rscript“的文件都将被识别为r-mode。
发布于 2009-07-10 14:26:52
使用一些notes on customized indentation尝试shell-script-mode
对我来说,它可以很好地缩进你的代码。
https://stackoverflow.com/questions/1107605
复制相似问题