Fork me on GitHub
#spacemacs
<
2022-04-10
>
Faris00:04:22

Hi, how do I make line numbers absolute instead of relative? I found this in core-dotspacemacs.el

(spacemacs|defc dotspacemacs-line-numbers nil
  "Control line numbers activation.
If set to `t' or `relative' line numbers are turned on in all `prog-mode' and
`text-mode' derivatives. If set to `relative', line numbers are relative.
This variable can also be set to a property list for finer control:
'(:relative nil
  :disabled-for-modes dired-mode
                      doc-view-mode
                      markdown-mode
                      org-mode
                      pdf-view-mode
                      text-mode
  :size-limit-kb 1000)
The property `:enabled-for-modes' takes priority over `:disabled-for-modes' and
restricts line-number to the specified list of major-mode."
  '(choice boolean
           (const relative)
           (const visual)
           (const prog-mode)
           (repeat sexp))
  'spacemacs-dotspacemacs-init)
But changing the value to t doesn’t seem to do anything even after restarting.

practicalli-johnny08:04:32

Did you change the value in the code above or in the setting in .spacemacs configuration file (which takes precedence)

👀 1
Faris14:04:55

Okay that was the issue. Thanks!!!

😁 1
practicalli-johnny17:04:00

There are a lot of default settings (with useful descriptions) in the .spacemacs configuration file. It's worth a read (or a search)