aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantine Vetoshev <gepardcv@gmail.com>2021-05-23 15:44:02 -0700
committerConstantine Vetoshev <gepardcv@gmail.com>2021-05-23 15:44:02 -0700
commit69ca15d341dd36a4e61d80325c9555920178542c (patch)
treeeffc928d9474812a8a723e7b06dd90d1282a18b4
parent6df37b0ee19861bdc86b0cca5b648b1233c64da9 (diff)
Change formatting and spacing.
-rw-r--r--README.md7
-rw-r--r--perspective.el11
2 files changed, 12 insertions, 6 deletions
diff --git a/README.md b/README.md
index d0823f7..b5e93fa 100644
--- a/README.md
+++ b/README.md
@@ -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