From 42c26033db101beb2ccac5342c1cf56f266cadc5 Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 29 Dec 2020 21:56:49 +0000 Subject: jao-compilation (and old stuff removed) --- prog/jao-cabal.el | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 prog/jao-cabal.el (limited to 'prog/jao-cabal.el') diff --git a/prog/jao-cabal.el b/prog/jao-cabal.el deleted file mode 100644 index 5f5fd99..0000000 --- a/prog/jao-cabal.el +++ /dev/null @@ -1,22 +0,0 @@ -(require 'jao-dominating-file) - -(defun jao-haskell-locate-cabal-file () - (jao-locate-dominating-file ".+\\.cabal")) - -(eval-after-load 'haskell-mode - '(add-hook 'haskell-mode-hook - (lambda () - (set (make-local-variable 'compile-command) "cabal install")))) - -(defun jao-haskell-cabal-build () - (interactive) - (let ((cabal-file (jao-haskell-locate-cabal-file))) - (unless cabal-file - (error "Couldn't find associated cabal file")) - (let ((default-directory (file-name-directory cabal-file))) - (call-interactively 'compile)))) - -;;(eval-after-load 'haskell-mode -;; '(define-key haskell-mode-map [?\C-c ?c] 'jao-haskell-cabal-build)) - -(provide 'jao-cabal) -- cgit v1.2.3