/hoon-mode.el

Primary LanguageEmacs LispGNU General Public License v2.0GPL-2.0

This package provides hoon-mode, which provides syntax highlighting for the language Hoon which is part of the Urbit ecosystem.

Installing

Currently this package must be installed manually.

For Doom Emacs, add the following to /.doom.d/packages.el:

(package! hoon-mode :recipe (:host github :repo "urbit/hoon-mode.el"))

Configuring

Add the following to your configuration:

(add-hook 'hoon-mode
          (lambda ()
            (define-key hoon-mode-map (kbd "C-c r") 'hoon-eval-region-in-herb)
            (define-key hoon-mode-map (kbd "C-c b") 'hoon-eval-buffer-in-herb)))

Language Server

Install the Hoon Language Server and add the following to your configuration

(add-hook 'hoon-mode #'lsp)