Emacs: Don't show line-numbers in treemacs.
This commit is contained in:
parent
52db60f144
commit
1ce2ff6120
|
@ -1,6 +1,6 @@
|
||||||
;;; appearance.el --- Configure appearance. -*- lexical-binding: t; -*-
|
;;; 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:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -76,6 +76,9 @@
|
||||||
:if (>= emacs-major-version 26)
|
:if (>= emacs-major-version 26)
|
||||||
|
|
||||||
:config
|
:config
|
||||||
|
(defun my/disable-line-numbers (&optional dummy)
|
||||||
|
(display-line-numbers-mode -1))
|
||||||
|
|
||||||
(global-display-line-numbers-mode)
|
(global-display-line-numbers-mode)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*-
|
;;; 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:
|
;;; Commentary:
|
||||||
;; * treemacs
|
;; * treemacs
|
||||||
|
@ -11,6 +11,7 @@
|
||||||
;; Directory tree.
|
;; Directory tree.
|
||||||
(use-package treemacs
|
(use-package treemacs
|
||||||
:demand t
|
:demand t
|
||||||
|
:after (display-line-numbers)
|
||||||
|
|
||||||
:custom
|
:custom
|
||||||
(treemacs-project-follow-cleanup t)
|
(treemacs-project-follow-cleanup t)
|
||||||
|
@ -21,6 +22,9 @@
|
||||||
("M-<f8>" . treemacs-add-and-display-current-project) ; Add current project.
|
("M-<f8>" . treemacs-add-and-display-current-project) ; Add current project.
|
||||||
(:map treemacs-mode-map
|
(:map treemacs-mode-map
|
||||||
("<mouse-1>" . treemacs-single-click-expand-action))
|
("<mouse-1>" . treemacs-single-click-expand-action))
|
||||||
|
|
||||||
|
:hook
|
||||||
|
(treemacs-mode . my/disable-line-numbers)
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package treemacs-projectile
|
(use-package treemacs-projectile
|
||||||
|
|
Loading…
Reference in New Issue
Block a user