emacs: Add hare-mode

This commit is contained in:
Erwin Boskma 2024-01-29 10:18:41 +01:00
parent 1a37a82af9
commit 29e3f7d597
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk
2 changed files with 22 additions and 0 deletions

View file

@ -1700,6 +1700,16 @@ Register =nushell= LSP with eglot
'(nushell-ts-mode . ("nu" "--lsp")))) '(nushell-ts-mode . ("nu" "--lsp"))))
#+end_src #+end_src
*** hare
[[https://git.sr.ht/~bbuccianti/hare-mode][hare-mode]] for [[https://harelang.org][hare]] support.
#+begin_src emacs-lisp
(use-package hare-mode
:ensure nil ;; It's installed outside emacs
)
#+end_src
* Org * Org
** Main org setup ** Main org setup

View file

@ -23,6 +23,17 @@ with lib; let
}; };
}; };
hare-mode = pkgs.emacsPackages.trivialBuild {
pname = "hare-mode";
version = "unstable-2022-04-27";
src = pkgs.fetchFromSourcehut {
owner = "~bbuccianti";
repo = "hare-mode";
rev = "bb7b2faccb5939b0c8d4ffa6a6e28a0d2bc93dd6";
sha256 = "SOnsNDWKL077AgTdpd9zZPhiyv8d/snllzTy53qlco8=";
};
};
emacsWithPackages = pkgs.emacsWithPackagesFromUsePackage { emacsWithPackages = pkgs.emacsWithPackagesFromUsePackage {
config = config =
let let
@ -35,6 +46,7 @@ with lib; let
alwaysEnsure = true; alwaysEnsure = true;
alwaysTangle = true; alwaysTangle = true;
extraEmacsPackages = epkgs: with epkgs; [ extraEmacsPackages = epkgs: with epkgs; [
hare-mode
vterm vterm
(treesit-grammars.with-grammars (p: with p; [ (treesit-grammars.with-grammars (p: with p; [
tree-sitter-bash tree-sitter-bash