Skip to content

Latest commit

 

History

History
30 lines (27 loc) · 1.29 KB

readme.org

File metadata and controls

30 lines (27 loc) · 1.29 KB

Emacs Ahoy

Run ahoy commands from within emacs

Do you want the convenience of ahoy, but also love the convenience of Emacs? Then this is the package for you!

Depends on package ansi-exec.

This package offers three commands

  • ahoy: Prompts you to select an ahoy command then executes it.
  • ahoy-run-with-args: Prompts you to select an ahoy command, Prompts for args, then executes the command.
  • ahoy-help: Prompts you to select an ahoy command then returns it’s help text.

Installation

Doom Emacs:

  • Add the following to your packages.el
(package! ansi-exec :recipe (:host github :repo "nan0scho1ar/emacs-ansi-exec" :files ("*.el")))
(package! ahoy :recipe (:host github :repo "nan0scho1ar/emacs-ahoy" :files ("*.el")))
  • Add the following to your config.el
(after! ansi-exec
  (use-package! ahoy
    :config
    (map! :mode ahoy-mode :n "q" #'delete-window)
    (map! :leader (:prefix ("p A" . "Ahoy")
                   :desc "Ahoy run cmd"       "A" #'ahoy
                   :desc "Ahoy run with args" "a" #'ahoy-run-with-args
                   :desc "Ahoy help"          "h" #'ahoy-help))))