Emacs: Fix treemacs init?
This commit is contained in:
parent
98e5920502
commit
120b7ef9d1
|
@ -1,6 +1,6 @@
|
||||||
;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*-
|
;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-11-29T09:15:41+0100>
|
;; Time-stamp: <2020-11-29T11:51:57+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;; * treemacs
|
;; * treemacs
|
||||||
|
@ -14,9 +14,7 @@
|
||||||
|
|
||||||
(use-package treemacs
|
(use-package treemacs
|
||||||
:after (display-line-numbers doom-themes hl-line)
|
:after (display-line-numbers doom-themes hl-line)
|
||||||
;; ;; Start with a clean workspace list.
|
:commands (my/treemacs-show-maybe)
|
||||||
;; :init (delete-file (expand-file-name ".cache/treemacs-persist"
|
|
||||||
;; user-emacs-directory))
|
|
||||||
:custom ((treemacs-project-follow-cleanup t) ; Collapse projects when leaving.
|
:custom ((treemacs-project-follow-cleanup t) ; Collapse projects when leaving.
|
||||||
(treemacs-silent-refresh t)) ; No log message on refresh.
|
(treemacs-silent-refresh t)) ; No log message on refresh.
|
||||||
:config (progn
|
:config (progn
|
||||||
|
@ -33,7 +31,7 @@
|
||||||
(defun my/treemacs-show-maybe ()
|
(defun my/treemacs-show-maybe ()
|
||||||
(when (and (>= (frame-width) 120)
|
(when (and (>= (frame-width) 120)
|
||||||
(file-exists-p treemacs-persist-file))
|
(file-exists-p treemacs-persist-file))
|
||||||
(treemacs)
|
(treemacs-select-window)
|
||||||
(other-window 1))))
|
(other-window 1))))
|
||||||
:bind (("<f9>" . treemacs-select-window) ; Focus treemacs.
|
:bind (("<f9>" . treemacs-select-window) ; Focus treemacs.
|
||||||
("C-<f9>" . treemacs) ; Toggle treemacs.
|
("C-<f9>" . treemacs) ; Toggle treemacs.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user