diff options
| author | gcv <gepardcv@gmail.com> | 2024-10-30 11:38:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-30 11:38:28 -0700 |
| commit | 2647fcf8cf5a3054ce527f7ba72a18422ce54b2f (patch) | |
| tree | 04b632f5b0fd674f31834f1f29260e764d59529f | |
| parent | f50eb57855f3996ef1e66755bf94620d7342ecfc (diff) | |
| parent | aba84dddfcd36c1b45181077855dc53b3df4959e (diff) | |
Merge pull request #211 from titibandit/next-prev
mentions `switch-to-prev-buffer-skip` customization in Readme
| -rw-r--r-- | README.md | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -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 |
