Add buffer-move
This commit is contained in:
parent
c31d5c452d
commit
5814ef421b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user