diff options
Diffstat (limited to '+lang.el')
| -rw-r--r-- | +lang.el | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/+lang.el b/+lang.el deleted file mode 100644 index 6ae23c5..0000000 --- a/+lang.el +++ /dev/null @@ -1,17 +0,0 @@ -;;; $DOOMDIR/+lang.el -*- lexical-binding: t; -*- -(load! "+eglot") -(load! "+flycheck") -(load! "+format") - -;; functions -(defun my/hs-eval () - (interactive) - (let* ((src (buffer-file-name)) - (out (file-name-sans-extension src))) - (when (zerop (call-process-shell-command - (format "runghc %s" src) nil "*runghc-output*")) - (let ((buf (make-comint "hs-run" out))) - (display-buffer buf))))) -(add-hook 'haskell-mode-hook - (lambda () - (local-set-key (kbd "<f5>") #'my/hs-eval))) |
