Emacs: Don't show line-numbers in treemacs.

This commit is contained in:
tastytea 2019-11-09 19:29:49 +01:00
parent 52db60f144
commit 1ce2ff6120
2 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,6 @@
;;; appearance.el --- Configure appearance. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-11-09T12:20:03+00:00>
;; Time-stamp: <2019-11-09T18:27:53+00:00>
;;; Commentary:
@ -76,6 +76,9 @@
:if (>= emacs-major-version 26)
:config
(defun my/disable-line-numbers (&optional dummy)
(display-line-numbers-mode -1))
(global-display-line-numbers-mode)
)

View File

@ -1,6 +1,6 @@
;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-11-09T17:19:20+00:00>
;; Time-stamp: <2019-11-09T18:28:33+00:00>
;;; Commentary:
;; * treemacs
@ -11,6 +11,7 @@
;; Directory tree.
(use-package treemacs
:demand t
:after (display-line-numbers)
:custom
(treemacs-project-follow-cleanup t)
@ -21,6 +22,9 @@
("M-<f8>" . treemacs-add-and-display-current-project) ; Add current project.
(:map treemacs-mode-map
("<mouse-1>" . treemacs-single-click-expand-action))
:hook
(treemacs-mode . my/disable-line-numbers)
)
(use-package treemacs-projectile