六一的部落格


关关难过关关过,前路漫漫亦灿灿。



工作区管理


treemacs-安装

 1(use-package treemacs
 2  :ensure t
 3  :defer t
 4  :init
 5  (with-eval-after-load 'winum
 6    (define-key winum-keymap (kbd "M-0") #'treemacs-select-window))
 7  :config
 8  (progn
 9    (with-eval-after-load 'treemacs
10      (define-key treemacs-mode-map [mouse-1] #'treemacs-single-click-expand-action)) ;; 单击打开文件
11    (setq treemacs-show-hidden-files nil)          
12    ;; (setq treemacs-show-cursor -1)
13    ;; (treemacs-resize-icons 15)          
14    )
15  :bind
16  (:map global-map
17        ("M-0"       . treemacs-select-window)
18        ;; ("C-x t 1"   . treemacs-delete-other-windows)
19        ;; ("C-x t t"   . treemacs)
20        ;; ("C-x t d"   . treemacs-select-directory)
21        ;; ("C-x t B"   . treemacs-bookmark)
22        ;; ("C-x t C-t" . treemacs-find-file)
23        ))

treemacs-快捷键

-
打开文件目录 M-0

treemacs


工作区管理


treemacs-安装

 1(use-package treemacs
 2  :ensure t
 3  :defer t
 4  :init
 5  (with-eval-after-load 'winum
 6    (define-key winum-keymap (kbd "M-0") #'treemacs-select-window))
 7  :config
 8  (progn
 9    (with-eval-after-load 'treemacs
10      (define-key treemacs-mode-map [mouse-1] #'treemacs-single-click-expand-action)) ;; 单击打开文件
11    (setq treemacs-show-hidden-files nil)          
12    ;; (setq treemacs-show-cursor -1)
13    ;; (treemacs-resize-icons 15)          
14    )
15  :bind
16  (:map global-map
17        ("M-0"       . treemacs-select-window)
18        ;; ("C-x t 1"   . treemacs-delete-other-windows)
19        ;; ("C-x t t"   . treemacs)
20        ;; ("C-x t d"   . treemacs-select-directory)
21        ;; ("C-x t B"   . treemacs-bookmark)
22        ;; ("C-x t C-t" . treemacs-find-file)
23        ))

treemacs-快捷键

-
打开文件目录 M-0