'(vterm-mode eshell-mode shell-mode term-mode ansi-term-mode) ( defcustom display-line-numbers-exempt-modes To disable this in certain major modes you can redefine display-line-numbers-turn-on: ( require ' display-line-numbers) emacs file: ( when (version<= "26.0.50" emacs-version ) You can enable it globally by appending this to your. The solution is simple: disable `linum-mode` or any linum-mode alternative when file is too big. It could slow down emacs when viewing file with more than tens of thousands of lines. The Easy Wayĭisplay-line-numbers-mode is available since Emacs 26.įor older Emacs, use M-x linum-mode. NumberLines will add the line numbers to the buffer content. See Also: The code on this page just displays line numbers without actually changing the buffer content. If you just want to work on a specific part of the file and you are accustomed to doing that by showing line numbers in the margin, try BasicNarrowing instead. This page is about displaying line numbers in a buffer, or otherwise indicating line numbers, without actually changing the buffer content.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |