mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 04:11:18 +00:00
I INSIST on seeing this buffer in this window
This commit is contained in:
parent
1ba69a10a6
commit
a11ece9ae3
1 changed files with 8 additions and 0 deletions
|
|
@ -2,6 +2,14 @@
|
|||
|
||||
* buffer-window management
|
||||
#+begin_src emacs-lisp
|
||||
(defun switch-to-buffer-force-same-window (buffer)
|
||||
(interactive
|
||||
(list (read-buffer-to-switch "Switch to buffer: ")))
|
||||
(let ((switch-to-buffer-obey-display-actions nil))
|
||||
(switch-to-buffer buffer nil t)))
|
||||
|
||||
(global-set-key (kbd "C-x B") #'switch-to-buffer-force-same-window)
|
||||
|
||||
(setq switch-to-buffer-obey-display-actions t)
|
||||
|
||||
(add-to-list 'display-buffer-alist
|
||||
|
|
|
|||
Loading…
Reference in a new issue