diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-05-06 02:38:40 +0530 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-05-06 02:38:40 +0530 |
commit | ef5eb9615a6af6c0f38fb4e7cec1b7de57f9d150 (patch) | |
tree | f709163443264c238bc9e5aa58a586f7f082f87d /Emacs/.config | |
parent | 41bf661eed2a7d26872dbb60b91777bb7895c2e3 (diff) | |
download | dotfiles-ef5eb9615a6af6c0f38fb4e7cec1b7de57f9d150.tar.gz dotfiles-ef5eb9615a6af6c0f38fb4e7cec1b7de57f9d150.tar.bz2 dotfiles-ef5eb9615a6af6c0f38fb4e7cec1b7de57f9d150.zip |
(Emacs/lang)~enable and clean up haskell mode
Diffstat (limited to 'Emacs/.config')
-rw-r--r-- | Emacs/.config/emacs/lang.org | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/Emacs/.config/emacs/lang.org b/Emacs/.config/emacs/lang.org index 15f9ecb..aaa5f61 100644 --- a/Emacs/.config/emacs/lang.org +++ b/Emacs/.config/emacs/lang.org @@ -455,10 +455,7 @@ features to be fair. (add-hook 'java-mode-hook (proc (setq-local local-abbrev-table java-mode-abbrev-table))))) #+end_src -* WAIT Haskell -:PROPERTIES: -:header-args:emacs-lisp: :tangle no -:END: +* Haskell Haskell is a static lazy functional programming language (what a mouthful). It's quite a beautiful language and really learning it will change the way you think about programming. However, my preferred @@ -480,21 +477,27 @@ will run in the REPL. Even easier than making your own buffer. (haskell-interactive-prompt-cont "{λ} ") (haskell-interactive-popup-errors nil) (haskell-stylish-on-save nil) - (haskell-process-type 'stack-ghci) + (haskell-process-type 'auto) :general (shell-leader - "h" #'+shell/toggle-haskell-repl) + "h" #'haskell-interactive-bring) + (local-leader + :keymaps 'haskell-mode-map + "l" #'haskell-process-load-or-reload + "t" #'haskell-process-do-type) + (local-leader + :keymaps 'haskell-interactive-mode-map + "c" #'haskell-interactive-mode-clear) + (imap + :keymaps 'haskell-interactive-mode-map + "M-k" #'haskell-interactive-mode-history-previous + "M-j" #'haskell-interactive-mode-history-next) :display ("\\*haskell.**\\*" (display-buffer-at-bottom) (window-height . 0.25)) :config - (load (concat user-emacs-directory "elisp/haskell-multiedit.el")) - (+oreo/create-toggle-function - +shell/toggle-haskell-repl - "*haskell*" - haskell-interactive-bring - nil)) + (load (concat user-emacs-directory "elisp/haskell-multiedit.el"))) #+end_src * Python Works well for python. If you have ~pyls~ it should be on your path, so |