about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.org23
1 files changed, 23 insertions, 0 deletions
diff --git a/config.org b/config.org index ac4f360..43096c1 100644 --- a/config.org +++ b/config.org
@@ -217,6 +217,29 @@ I want to select the *Help* window by default, so I can easily quit it.
217 (setq-default help-window-select t) 217 (setq-default help-window-select t)
218#+end_src 218#+end_src
219 219
220*** Split and switch
221
222from [[https://github.com/danielmai/.emacs.d/blob/master/config.org#window][Daniel Mai]], though I've seen it before.
223
224#+begin_src emacs-lisp :noweb-ref functions
225 (defun vsplit-other-window ()
226 "Split the window vertically and switch to the new window."
227 (interactive)
228 (split-window-vertically)
229 (other-window 1 nil))
230
231 (defun hsplit-other-window ()
232 "Split the window horizontally and switch to the new window."
233 (interactive)
234 (split-window-horizontally)
235 (other-window 1 nil))
236#+end_src
237
238#+begin_src emacs-lisp :noweb-ref bindings
239 (acdw/bind "C-x 2" #'vsplit-other-window)
240 (acdw/bind "C-x 3" #'hsplit-other-window)
241#+end_src
242
220** Buffers 243** Buffers
221 244
222*** Uniquify buffers 245*** Uniquify buffers