summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-01-18 23:20:46 -0600
committerCase Duckworth2021-01-18 23:20:46 -0600
commit91b77006de59a859de07c5895df459f8472580a4 (patch)
tree8c6660204f676b147fd93094e2c636dc8f2a675b
parentCustomize frame title (diff)
downloademacs-91b77006de59a859de07c5895df459f8472580a4.tar.gz
emacs-91b77006de59a859de07c5895df459f8472580a4.zip
Change M-o binding to switch buffers too
-rw-r--r--config.org13
1 files changed, 11 insertions, 2 deletions
diff --git a/config.org b/config.org index a04bd01..d5fb7da 100644 --- a/config.org +++ b/config.org
@@ -289,10 +289,19 @@
289 (winner-mode +1)) 289 (winner-mode +1))
290 #+end_src 290 #+end_src
291 291
292**** Switch windows 292**** Switch windows or buffers if one window
293
294from [[https://www.reddit.com/r/emacs/comments/kz347f/what_parts_of_your_config_do_you_like_best/gjlnp2c/][u/astoff1]].
293 295
294 #+begin_src emacs-lisp 296 #+begin_src emacs-lisp
295 (global-set-key (kbd "M-o") #'other-window) 297 (defun acdw/other-window-or-buffer ()
298 "Switch to other window, or previous buffer."
299 (interactive)
300 (if (eq (count-windows) 1)
301 (switch-to-buffer nil)
302 (other-window 1)))
303
304 (global-set-key (kbd "M-o") #'acdw/other-window-or-buffer)
296 #+end_src 305 #+end_src
297 306
298**** Pop-up windows 307**** Pop-up windows