From 5814ef421b8248156bfcd588e08ec60977d42c58 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 6 May 2020 00:00:46 -0400 Subject: [PATCH] Add buffer-move --- emacs/init.org | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index 834f5ec..b01d7d5 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -979,6 +979,17 @@ Winner is a minor mode that keeps an undo/redo history of the window configurati (leader-def-key "wp" #'winner-undo) #+END_SRC +* Buffer move +A handy package to shift buffers between open windows: +#+BEGIN_SRC emacs-lisp + (use-package buffer-move + :general + ("C-S-j" #'buf-move-down) + ("C-S-k" #'buf-move-up) + ("C-S-h" #'buf-move-left) + ("C-S-l" #'buf-move-right)) +#+END_SRC + * Info #+BEGIN_SRC emacs-lisp (use-package info @@ -1577,19 +1588,24 @@ Set up evil keybindings: :hook (org-mode . evil-org-mode) :config (add-hook 'evil-org-mode-hook - (lambda () - (evil-org-set-key-theme - '(textobjects - insert - navigation - additional - shift - todo)) - (general-def 'insert org-mode-map [backspace] 'org-delete-backward-char))) + (lambda () + (evil-org-set-key-theme + '(textobjects + insert + navigation + additional + shift + todo)) + (general-def 'insert org-mode-map [backspace] 'org-delete-backward-char))) (require 'evil-org-agenda) (evil-org-agenda-set-keys) (general-def 'motion org-agenda-mode-map "SPC" leader-map) - (general-def 'motion org-agenda-mode-map "gs" 'org-save-all-org-buffers)) + (general-def 'motion org-agenda-mode-map "gs" 'org-save-all-org-buffers) + (general-def '(normal motion) evil-org-mode-map + "C-S-j" nil + "C-S-k" nil + "C-S-h" nil + "C-S-l" nil)) #+END_SRC And a global keybinding to open an org file: