0

https://www.gnu.org/software/emacs/manual/html_node/efaq/Displaying-the-current-line-or-column.html

M-x (global-display-line-numbers-mode)

But after I do C-x C-c then it's not configed. How do I make config permanently for display line number.

jian
  • 103
  • 2

1 Answers1

2

M-x customize-variable RET global-display-line-numbers-mode RET, and click the Toggle button, and then press the Apply and Save button

At the end of the process your init file----see the *Messages* buffer for this info-----will have elisp code.

(custom-set-variables
 '(global-display-line-numbers-mode t))

Copy the following snippet to your *scratch* buffer,

(info "(emacs) Specific Customization")

and do C-x C-e at the end of the buffer. It will take you to the manual page for how to customize Emacs, which is customize-option: Specific Customization (GNU Emacs Manual)


The official GNU Emacs Manuals (the HTML ones online) aren't searchable.

To access searchable HTML manuals, visit The Emacs Editor | Emacs Docs. In this case, the entry is 49.1.6 Customizing Specific Items | Emacs Docs On the top menu bar, you can access the docs for many commonly used packages.

The Emacs Docs has a helm like search menu which offers suggestion base on what you type, which is nice. (GNU Emacs Manual-s suck, I know that)

Emacsdocs.org is a nice place to search Emacs Manuals

Emacsdocs.org is a nice place to search Emacs Manuals