diff --git a/home-manager/modules/emacs/config.org b/home-manager/modules/emacs/config.org index 0032322..2aabda0 100644 --- a/home-manager/modules/emacs/config.org +++ b/home-manager/modules/emacs/config.org @@ -1700,6 +1700,16 @@ Register =nushell= LSP with eglot '(nushell-ts-mode . ("nu" "--lsp")))) #+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 ** Main org setup diff --git a/home-manager/modules/emacs/default.nix b/home-manager/modules/emacs/default.nix index 1bc3b6a..9227906 100644 --- a/home-manager/modules/emacs/default.nix +++ b/home-manager/modules/emacs/default.nix @@ -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 { config = let @@ -35,6 +46,7 @@ with lib; let alwaysEnsure = true; alwaysTangle = true; extraEmacsPackages = epkgs: with epkgs; [ + hare-mode vterm (treesit-grammars.with-grammars (p: with p; [ tree-sitter-bash