diff options
| -rw-r--r-- | README.md | 7 | ||||
| -rw-r--r-- | perspective.el | 11 |
2 files changed, 12 insertions, 6 deletions
@@ -199,11 +199,8 @@ list of buffers in all perspectives. buffers filtered by the current perspective. With a prefix argument, it shows a list of buffers in all perspectives. -If you want group buffers by persp-name in ibuffer buffer: - -`M-x persp-ibuffer-set-filter-groups` - -Or, make this the default: +If you want to group buffers by persp-name in ibuffer buffer, use +`persp-ibuffer-set-filter-groups`. Or, make it the default: ``` (add-hook 'ibuffer-hook (lambda () diff --git a/perspective.el b/perspective.el index 25994af..c72abae 100644 --- a/perspective.el +++ b/perspective.el @@ -1211,6 +1211,9 @@ perspective beginning with the given letter." ;; `other-buffer'. (get-buffer-create (persp-scratch-buffer))))) + +;;; --- perspective-aware buffer switchers + ;; Buffer switching integration: useful for frameworks which enhance the ;; built-in completing-read (e.g., Selectrum). ;;;###autoload @@ -1382,6 +1385,9 @@ PERSP-SET-IDO-BUFFERS)." :update-fn #'counsel--switch-buffer-update-fn) #'counsel-switch-buffer)) + +;;; --- durability implementation (persp-state-save and persp-state-load) + ;; Symbols namespaced by persp--state (internal) and persp-state (user ;; functions) provide functionality which allows saving perspective state on ;; disk, and loading it into another Emacs session. @@ -1633,7 +1639,9 @@ restored." (defalias 'persp-state-restore 'persp-state-load) -;;; --- ibuffer + +;;; --- ibuffer filter group code + (with-eval-after-load 'ibuffer (defvar ibuffer-filtering-alist nil) (define-ibuffer-filter persp-name @@ -1679,6 +1687,7 @@ restored." (pop-to-buffer ibuf) (ibuffer-update nil t))))) + ;;; --- done ;;; XXX: Undo nasty kludge necessary for cleanly compiling this source file by |
