Add persp-mode (disabled)
This commit is contained in:
parent
91b6accb6d
commit
b14a63c302
25
init.el
25
init.el
|
@ -382,6 +382,31 @@
|
||||||
:config
|
:config
|
||||||
(dirvish-override-dired-mode))
|
(dirvish-override-dired-mode))
|
||||||
|
|
||||||
|
(use-package persp-mode
|
||||||
|
:if nil
|
||||||
|
:bind ("C-c p" . persp-key-map)
|
||||||
|
:custom
|
||||||
|
(persp-keymap-prefix nil)
|
||||||
|
:init
|
||||||
|
(when (daemonp)
|
||||||
|
(require 'persp-mode))
|
||||||
|
:config
|
||||||
|
(with-eval-after-load 'consult
|
||||||
|
(consult-customize consult--source-buffer :hidden t :default nil)
|
||||||
|
(add-to-list 'consult-buffer-sources
|
||||||
|
(list :name "Perspective"
|
||||||
|
:narrow ?s
|
||||||
|
:category 'buffer
|
||||||
|
:state #'consult--buffer-state
|
||||||
|
:history 'buffer-name-history
|
||||||
|
:default t
|
||||||
|
:items (lambda ()
|
||||||
|
(consult--buffer-query :sort 'visibility
|
||||||
|
:predicate (lambda (buf)
|
||||||
|
(memq buf (persp-buffer-list)))
|
||||||
|
:as #'buffer-name)))))
|
||||||
|
(persp-mode))
|
||||||
|
|
||||||
(use-package alert
|
(use-package alert
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:custom
|
:custom
|
||||||
|
|
Loading…
Reference in a new issue