From 46d41c55485b7ab5a759182987d61b310da1490b Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Mon, 13 Sep 2021 11:37:29 +0100 Subject: [PATCH] Don't advertise obsolete same-window-regexps 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"). --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5498906..f49d678 100644 --- a/README.md +++ b/README.md @@ -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