Cpp-Harpoon.el: Harpoon for emacs

About

Harpoon plugin for emacs, based on the plugin from ThePrimeagen.

This plugin offers quick bookmarks separated by project and branch. You can quick navigate between your working files and forget about that files opened that you will not use anymore.

Harpoon persists between emacs sessions.

demo.gif

Installation

Manual

Load harpoon.el in your personal configuration.

MELPA

Coming soon.

Features

  • Add, order and delete harpoons in your code.
  • Harpoon is separated by project and branch
  • Quick switch between harpoons

Configuring

Example of how to set the shortcuts:

;; On vanilla (You can use another prefix instead C-c h)
(global-set-key (kbd "C-c h f") 'harpoon-toggle-file)
(global-set-key (kbd "C-c h <return>") 'harpoon-add-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 "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)

;; On doom emacs / Evil
(load "path/to/harpoon.el")
(require 'harpoon)

(map! :leader "j c" 'harpoon-clear)
(map! :leader "j f" 'harpoon-toggle-file)
(map! :n "C-s" 'harpoon-add-file)
(map! :n "C-SPC" 'harpoon-toggle-quick-menu)
(map! :leader "1" 'harpoon-go-to-1)
(map! :leader "2" 'harpoon-go-to-2)
(map! :leader "3" 'harpoon-go-to-3)
(map! :leader "4" 'harpoon-go-to-4)
(map! :leader "5" 'harpoon-go-to-5)
(map! :leader "6" 'harpoon-go-to-6)
(map! :leader "7" 'harpoon-go-to-7)
(map! :leader "8" 'harpoon-go-to-8)
(map! :leader "9" 'harpoon-go-to-9)

My other works:

Rails i18n:

https://github.com/otavioschwanck/rails-i18n.el

Rails routes:

https://github.com/otavioschwanck/rails-routes.el

My Personal Config (for rails)

(Very complete, has videos + handbooks of how to use) https://github.com/otavioschwanck/doom-emacs-on-rails/

Do you like my work? Please, buy me a coffee

https://www.buymeacoffee.com/otavioschwanck

Comments

  • Add f dependency to dependency header
    Add f dependency to dependency header

    Jan 12, 2022

    null

                                                                                                                                                                                                           
    Reply