Skip to content
Snippets Groups Projects
Commit 715fe72e authored by Linus Heckemann's avatar Linus Heckemann
Browse files

Set up emacs for interactive GHOTL eval

parent a3d73ca0
No related branches found
No related tags found
No related merge requests found
......@@ -4,5 +4,5 @@ let
ghotl-repl = (import ./ghotl-repl.nix { inherit pkgs; });
in mkShell {
name = "ghotl";
buildInputs = [ emacs ghotl ghotl-repl ];
buildInputs = [ (import ./emacs.nix) ghotl ghotl-repl ];
}
......@@ -11,15 +11,17 @@ let
:config (evil-mode))
(use-package haskell-mode
:bind ("C-c C-c" . haskell-compile))
;(use-package ghc)
(global-whitespace-mode)
(setq whitespace-style '(tab-mark face trailing tabs))
(defun ghotl-eval () "" ()
(shell-command-on-region (point-min) (point-max) "ghotl" "*GHOTL Output*")
(display-buffer "*GHOTL Output*"))
(global-set-key (kbd "C-c C-e") (lambda () (interactive) (ghotl-eval)))
'';
};
emacs = pkgs.emacsWithPackages (ps: with ps; [
evil markdown-mode
haskell-mode
ghc-mod
nix-mode
magit
use-package
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment