unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to always start emacs with Relative Line Numbers turned on by default
@ 2018-08-23 16:39 J191
  2018-08-23 17:22 ` Eric S Fraga
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: J191 @ 2018-08-23 16:39 UTC (permalink / raw)
  To: help-gnu-emacs



In Emacs 26.x, How do I get Emacs to start with Relative Line Numbers turned on by default ?

I tried to use C-x h, then clicked the menu item and the help showed the following

<menu-bar> <options> <showhide> <display-line-numbers> <relative> 
runs the command #[nil "\300\301!\210\302\303!\207"
[menu-bar-display-line-numbers-mode relative message "Relative line
numbers enabled"] 2 nil nil] (found in global-map), which is an
interactive compiled Lisp function.

So tried adding the command into init.el as

(menu-bar-display-line-numbers-mode relative message "Relative line
numbers enabled")

How do I make this work ?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-23 18:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-23 16:39 How to always start emacs with Relative Line Numbers turned on by default J191
2018-08-23 17:22 ` Eric S Fraga
2018-08-23 17:33 ` Eli Zaretskii
     [not found] ` <mailman.5463.1535045645.1292.help-gnu-emacs@gnu.org>
2018-08-23 18:22   ` J191

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).