* 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
* Re: How to always start emacs with Relative Line Numbers turned on by default
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>
2 siblings, 0 replies; 4+ messages in thread
From: Eric S Fraga @ 2018-08-23 17:22 UTC (permalink / raw)
To: help-gnu-emacs
On Thursday, 23 Aug 2018 at 09:39, J191 wrote:
> In Emacs 26.x, How do I get Emacs to start with Relative Line Numbers
> turned on by default ?
Maybe have a look at this reddit conversation:
https://www.reddit.com/r/emacs/comments/99e49n/displaylinenumbersmode_relative_line_numbers/
--
Eric S Fraga via Emacs 27.0.50 & org 9.1.13 on Debian buster/sid
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to always start emacs with Relative Line Numbers turned on by default
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>
2 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2018-08-23 17:33 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Thu, 23 Aug 2018 09:39:37 -0700 (PDT)
> From: J191 <dj9027@gmail.com>
>
> In Emacs 26.x, How do I get Emacs to start with Relative Line Numbers turned on by default ?
Like this:
(setq-default display-line-numbers 'relative)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to always start emacs with Relative Line Numbers turned on by default
[not found] ` <mailman.5463.1535045645.1292.help-gnu-emacs@gnu.org>
@ 2018-08-23 18:22 ` J191
0 siblings, 0 replies; 4+ messages in thread
From: J191 @ 2018-08-23 18:22 UTC (permalink / raw)
To: help-gnu-emacs
On Thursday, August 23, 2018 at 9:34:08 PM UTC+4, Eli Zaretskii wrote:
> > Date: Thu, 23 Aug 2018 09:39:37 -0700 (PDT)
> > From: J191 <j..@gmail.com>
> >
> > In Emacs 26.x, How do I get Emacs to start with Relative Line Numbers turned on by default ?
>
> Like this:
>
> (setq-default display-line-numbers 'relative)
Thank you
^ 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).