diff --git a/.config/emacs/init.org b/.config/emacs/init.org index fd3bff3..31ea245 100644 --- a/.config/emacs/init.org +++ b/.config/emacs/init.org @@ -214,6 +214,7 @@ Finish up which-key mono-complete beframe + harpoon ;; company ;; lsp-mode ;; lsp-ui @@ -967,6 +968,34 @@ The theme of `C-x 4` bindings is that they operate on other windows, so this fun (global-set-key (kbd "C-x C-0") 'kill-buffer-and-window) #+end_src + +Harpoon lets you quickly switch between bookmarked buffers + +#+begin_src emacs-lisp +(global-set-key (kbd "C-c h ") 'harpoon-add-file) + +;; And the vanilla commands +(global-set-key (kbd "C-c h f") 'harpoon-toggle-file) +(global-set-key (kbd "C-c h h") 'harpoon-toggle-quick-menu) +(global-set-key (kbd "C-c h c") 'harpoon-clear) + +(global-set-key (kbd "M-1") 'harpoon-go-to-1) +(global-set-key (kbd "M-2") 'harpoon-go-to-2) +(global-set-key (kbd "M-3") 'harpoon-go-to-3) +(global-set-key (kbd "M-4") 'harpoon-go-to-4) +(global-set-key (kbd "M-5") 'harpoon-go-to-5) + +(global-set-key (kbd "C-c h 1") 'harpoon-go-to-1) +(global-set-key (kbd "C-c h 2") 'harpoon-go-to-2) +(global-set-key (kbd "C-c h 3") 'harpoon-go-to-3) +(global-set-key (kbd "C-c h 4") 'harpoon-go-to-4) +(global-set-key (kbd "C-c h 5") 'harpoon-go-to-5) +(global-set-key (kbd "C-c h 6") 'harpoon-go-to-6) +(global-set-key (kbd "C-c h 7") 'harpoon-go-to-7) +(global-set-key (kbd "C-c h 8") 'harpoon-go-to-8) +(global-set-key (kbd "C-c h 9") 'harpoon-go-to-9) +#+end_src + ** Windows *** Window Management