[ESS] adding setnu to ess/emacs

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Tue Apr 18 18:07:54 CEST 2006


 > I am relatively new to emacs and wanted to add setnu.el (to display line 
 > numbers) while writing sas programs. I am wondering if ESS has a separate 
 > hook that would work as I try to get setnu to work on startup.
 > 
 > for text and emacs-lisp following hooks work:
 > (add-hook 'text-mode-hook 'turn-on-setnu-mode)
 > (add-hook 'emacs-lisp-mode-hook 'turn-on-setnu-mode)

have you tried:
  (add-hook 'ess-mode-hook 'turn-on-setnu-mode)

Best wishes, Stephen




More information about the ESS-help mailing list