about summary refs log tree commit diff stats
path: root/config.org
diff options
context:
space:
mode:
authorCase Duckworth2021-02-26 19:23:36 -0600
committerCase Duckworth2021-02-26 19:23:36 -0600
commitf98cd82f952c8a1115f813e74c29ff75c510648f (patch)
tree3f92953e3bd3144fad4333b371880941fe6e1938 /config.org
parentAdd sh-basic offset (diff)
downloademacs-f98cd82f952c8a1115f813e74c29ff75c510648f.tar.gz
emacs-f98cd82f952c8a1115f813e74c29ff75c510648f.zip
Add split-other-window commands
Diffstat (limited to 'config.org')
-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