I have spacemacs and when I edit a .py or .c file line numbering is turned on no problem, however when I open a .R file it isn't there (the mode is named ESS[S] to be precise). How can I turn it on here too ?

1 Answer 1


You have to turn linum-mode on after starting ess-mode. This mode takes care of adding line numbers.

(add-hook 'ess-mode-hook 'linum-mode)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.