all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: J191 <dj9027@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: How to always start emacs with Relative Line Numbers turned on by default
Date: Thu, 23 Aug 2018 09:39:37 -0700 (PDT)	[thread overview]
Message-ID: <3e39f2d5-8a01-4d95-b38d-bcb6d777fe28@googlegroups.com> (raw)



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 ?


             reply	other threads:[~2018-08-23 16:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-23 16:39 J191 [this message]
2018-08-23 17:22 ` How to always start emacs with Relative Line Numbers turned on by default 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3e39f2d5-8a01-4d95-b38d-bcb6d777fe28@googlegroups.com \
    --to=dj9027@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.