Skip to content

Commit

Permalink
Don't advertise obsolete same-window-regexps
Browse files Browse the repository at this point in the history
Since the user option same-window-regexps is provided only for
backward compatibility, rewrite the example in the README in terms
of the preferred display-buffer-alist, as per
(info "(elisp) Choosing Window Options").
  • Loading branch information
basil-conto committed Sep 13, 2021
1 parent cea5217 commit 46d41c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ If you prefer to roll out your own Elisp, you could add to your
`user-init-file` something as simple as:

```el
(add-to-list 'same-window-regexps "\\`\\*hackernews .*\\*\\'")
(push '("\\`\\*hackernews .*\\*\\'" (display-buffer-same-window))
display-buffer-alist)
```

### Troubleshooting
Expand Down

0 comments on commit 46d41c5

Please sign in to comment.