在aquamacs中的R脚本中使用下划线
我试图在aquamacs中编写R脚本,但每当我键入下划线作为变量名“\ux”的一部分时,编辑器会自动将其更改为“使用在aquamacs中的R脚本中使用下划线,r,emacs,ess,aquamacs,R,Emacs,Ess,Aquamacs,我试图在aquamacs中编写R脚本,但每当我键入下划线作为变量名“\ux”的一部分时,编辑器会自动将其更改为“使用M-x ess切换下划线”,以取消设置此ess默认值: ess-toggle-underscore is an alias for `ess-toggle-S-assign' in `ess-s-l.el'. (ess-toggle-underscore FORCE) Set the `ess-smart-S-assign-key' (by default "_" [under
M-x ess切换下划线”
,以取消设置此ess默认值:
ess-toggle-underscore is an alias for `ess-toggle-S-assign' in
`ess-s-l.el'.
(ess-toggle-underscore FORCE)
Set the `ess-smart-S-assign-key' (by default "_"
[underscore]) key to _ or back to
`ess-smart-S-assign-key'. Toggle the current definition, unless
FORCE is non-nil, where _ is set
unconditionally.
If you as per default have `ess-smart-S-assign-key' set to
underscore, note that using "C-q _" will always just insert the
underscore character.
您也可以在~/.emacs
中设置/取消设置
话虽如此,下划线在变量名中是有害的。不要相信Hadley在这件事上说的任何一个词——它始终是camelCase。另一个方法是在emacs中再次键入下划线,ESS将切换
我更喜欢variable.names中的句点而不是camelCase。变量名中的句点应该为S3方法名保留!