I am attempting to set up the new emacs 26.1 display-line-numbers-mode
as described in this comment: hybrid line number mode in emacs?
I have added this to my .emacs file:
(setq display-line-numbers 'relative
display-line-numbers-current-absolute t)
When I evaluate the above expression the desired behavior is produced, but it is not persistent. For example, it is not automatically evaluated on restarting emacs, and when I try to use my keybinding toggle:
(global-set-key (kbd "C-c l") 'display-line-numbers-mode)
The line numbers that are toggled are not relative.
What is the appropriate way to set display-line-numbers
to relative
in my configuration file so that using the keybinding results in relative line numbers?