Config: optimize dired and theme, add workspace config
This commit is contained in:
26
lisp/init-workspace.el
Normal file
26
lisp/init-workspace.el
Normal file
@@ -0,0 +1,26 @@
|
||||
;;; init-workspace.el --- workspace -*- lexical-binding: t -*-
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;;; Code:
|
||||
|
||||
(use-package perspective
|
||||
:bind
|
||||
("C-x M-b" . persp-list-buffers) ; or use a nicer switcher, see below
|
||||
:custom
|
||||
(persp-mode-prefix-key (kbd "C-c p")) ; pick your own prefix key here
|
||||
:init
|
||||
(persp-mode)
|
||||
:config
|
||||
(setq persp-switch-to-buffer-behavior 'switch)
|
||||
(with-eval-after-load 'consult
|
||||
(consult-customize consult-source-buffer :hidden t :default nil)
|
||||
(add-to-list 'consult-buffer-sources persp-consult-source))
|
||||
(setq switch-to-prev-buffer-skip
|
||||
(lambda (win buff bury-or-kill)
|
||||
(not (persp-is-current-buffer buff))))
|
||||
)
|
||||
|
||||
(provide 'init-workspace)
|
||||
|
||||
;;; init-workspace.el ends here
|
||||
Reference in New Issue
Block a user