(require 'haskell-ghci) (require 'scheme) (require 'hoogle) (define-minor-mode liskell-mode "Toggle Liskell mode. With no argument, this command toggles the mode. Non-null prefix argument turns on the mode." ;; The initial value. nil ;; The indicator for the mode line. " Liskell" ;; The minor mode bindings. '(("\C-c\C-l" . haskell-ghci-load-file) ("\C-c\C-s" . haskell-ghci-start-process) ("\C-c\C-r" . haskell-ghci-reload-file) ("\C-c\C-n" . haskell-ghci-locate-next-error) ("\C-c\C-b" . haskell-ghci-show-ghci-buffer) ("\C-c\C-d" . hoogle-lookup))) (setq auto-mode-alist (append '(("\\.lsk$" . (lambda () (lisp-mode) (setq lisp-indent-function 'scheme-indent-function) (liskell-mode)))) auto-mode-alist)) (provide 'liskell-mode)