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