about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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