diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-23 18:18:05 +0530 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-23 18:44:26 +0530 |
commit | a01cba5589368b6b2c3946d1286e8b295ab3403d (patch) | |
tree | 70750ea5bc1bdc240082898ef402d746762b2090 /Emacs/.config/emacs/core.org | |
parent | dd9f3215672c07cd9e93b298c74427631047f6e3 (diff) | |
download | dotfiles-a01cba5589368b6b2c3946d1286e8b295ab3403d.tar.gz dotfiles-a01cba5589368b6b2c3946d1286e8b295ab3403d.tar.bz2 dotfiles-a01cba5589368b6b2c3946d1286e8b295ab3403d.zip |
(Emacs/*)~stop using create-toggle-function
Diffstat (limited to 'Emacs/.config/emacs/core.org')
-rw-r--r-- | Emacs/.config/emacs/core.org | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/core.org b/Emacs/.config/emacs/core.org index 759ee24..60fb64c 100644 --- a/Emacs/.config/emacs/core.org +++ b/Emacs/.config/emacs/core.org @@ -578,9 +578,13 @@ a whim and not particularly caring for the current window setup. Thankfully you can change this via the ~display-buffer-alist~ which matches buffer names with how the window for the buffer should be displayed. I add a use-package keyword to make ~display-buffer-alist~ -records within use-package. +records within a use-package call. I have no idea whether it's optimal AT ALL, but it works for me. + +2024-04-23: Found this option ~switch-to-buffer-obey-display-actions~ +which makes manual buffer switches obey the same constraints via +~display-buffer-alist~ as creating the buffer automatically. #+begin_src emacs-lisp (use-package window :straight nil @@ -593,6 +597,7 @@ I have no idea whether it's optimal AT ALL, but it works for me. "k" #'previous-buffer "D" '(+oreo/clean-buffer-list :which-key "Kill most buffers")) :init + (setq switch-to-buffer-obey-display-actions t) (with-eval-after-load "use-package-core" (add-to-list 'use-package-keywords ':display) (defun use-package-normalize/:display (_name-symbol _keyword args) |