From 49979c2295d86d02c54e67c6a747a604b17a032c Mon Sep 17 00:00:00 2001 From: Fr3deric Date: Tue, 10 Mar 2020 23:55:49 +0100 Subject: [PATCH] only show line numbers in programming modes --- README.md | 1 - init.el | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index abfd039..322b184 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,6 @@ This is an attempt to learn about Emacs and its ecosystem by creating a custom c * make `C-x` (and others) accessible via `SPC x` * disable welcome buffer (or put something funnt there) * themed right-click menus - * disable line numbers in treemacs buffer * update diff-hl after committing things with magit * enable which-key completions and ido in dired-mode diff --git a/init.el b/init.el index 9c6cc7f..2333ebc 100644 --- a/init.el +++ b/init.el @@ -36,7 +36,7 @@ (setq column-number-mode t) ;; display line numbers on the left -(global-display-line-numbers-mode) +(add-hook 'prog-mode-hook #'display-line-numbers-mode) ;; indicate changed lines in version-controlled files (global-diff-hl-mode)