Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
ghotl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Linus Heckemann CS2014
ghotl
Commits
715fe72e
Commit
715fe72e
authored
7 years ago
by
Linus Heckemann
Browse files
Options
Downloads
Patches
Plain Diff
Set up emacs for interactive GHOTL eval
parent
a3d73ca0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
demo.nix
+1
-1
1 addition, 1 deletion
demo.nix
emacs.nix
+4
-2
4 additions, 2 deletions
emacs.nix
with
5 additions
and
3 deletions
demo.nix
+
1
−
1
View file @
715fe72e
...
@@ -4,5 +4,5 @@ let
...
@@ -4,5 +4,5 @@ let
ghotl-repl
=
(
import
./ghotl-repl.nix
{
inherit
pkgs
;
});
ghotl-repl
=
(
import
./ghotl-repl.nix
{
inherit
pkgs
;
});
in
mkShell
{
in
mkShell
{
name
=
"ghotl"
;
name
=
"ghotl"
;
buildInputs
=
[
emacs
ghotl
ghotl-repl
];
buildInputs
=
[
(
import
./emacs.nix
)
ghotl
ghotl-repl
];
}
}
This diff is collapsed.
Click to expand it.
emacs.nix
+
4
−
2
View file @
715fe72e
...
@@ -11,15 +11,17 @@ let
...
@@ -11,15 +11,17 @@ let
:config (evil-mode))
:config (evil-mode))
(use-package haskell-mode
(use-package haskell-mode
:bind ("C-c C-c" . haskell-compile))
:bind ("C-c C-c" . haskell-compile))
;(use-package ghc)
(global-whitespace-mode)
(global-whitespace-mode)
(setq whitespace-style '(tab-mark face trailing tabs))
(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
;
[
emacs
=
pkgs
.
emacsWithPackages
(
ps
:
with
ps
;
[
evil
markdown-mode
evil
markdown-mode
haskell-mode
haskell-mode
ghc-mod
nix-mode
nix-mode
magit
magit
use-package
use-package
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment