Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How can I configure spacemacs to always have linum-mode active in C/C++ buffers (cc-mode)?
If it is specific to spacemacs then you can add this line in your dotspacemacs/config:
(add-to-hooks 'linum-mode '(c-mode-hook c++-mode-hook))
Error in dotspacemacs/user-config: Symbol's function definition is void: add-to-hooks
You could put this in dotspacemacs/config:
The relative number line will be by default.
Required, but never shown