aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgcv <gepardcv@gmail.com>2024-10-30 11:38:28 -0700
committerGitHub <noreply@github.com>2024-10-30 11:38:28 -0700
commit2647fcf8cf5a3054ce527f7ba72a18422ce54b2f (patch)
tree04b632f5b0fd674f31834f1f29260e764d59529f
parentf50eb57855f3996ef1e66755bf94620d7342ecfc (diff)
parentaba84dddfcd36c1b45181077855dc53b3df4959e (diff)
Merge pull request #211 from titibandit/next-prev
mentions `switch-to-prev-buffer-skip` customization in Readme
-rw-r--r--README.md15
1 files changed, 12 insertions, 3 deletions
diff --git a/README.md b/README.md
index 46d5b86..f20cb2d 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ please refer to it for release notes.
- [Compatibility](#compatibility)
- [Installation](#installation)
- [Usage](#usage)
- - [Buffer Switchers](#buffer-switchers)
+ - [Buffer Switching](#buffer-switching)
- [Notes on `completing-read` Enhancements](#notes-on-completing-read-enhancements)
- [Saving Sessions to Disk](#saving-sessions-to-disk)
- [Customization](#customization)
@@ -240,10 +240,19 @@ The actual command keys (the ones pressed after the prefix) are defined in
- `C-l` — `persp-state-load`: Load all perspectives from a file
-### Buffer Switchers
+### Buffer Switching
Since Perspective maintains distinct buffer lists for each perspective, it helps
-to use a Perspective-aware buffer switcher.
+to use Perspective-aware methods for buffer switching.
+
+Since Emacs 27.1, the commands `previous-buffer` and `next-buffer` can be made
+Perspective-aware using the `switch-to-prev-buffer-skip` variable as follows:
+
+```elisp
+(setq switch-to-prev-buffer-skip
+ (lambda (win buff bury-or-kill)
+ (not (persp-is-current-buffer buff))))
+```
When using one of the following buffer switchers, you will only be prompted for
buffers in the current perspective and the frame-specific "global" shared