parent
3a370343e2
commit
33b95c628a
5 changed files with 76 additions and 0 deletions
27
modules/lang/sml/config.el
Normal file
27
modules/lang/sml/config.el
Normal file
|
@ -0,0 +1,27 @@
|
|||
;;; lang/sml/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(use-package! sml-mode
|
||||
:mode "\\.s\\(?:ml\\|ig\\)\\'"
|
||||
:config
|
||||
(set-repl-handler! 'sml-mode #'run-sml)
|
||||
|
||||
;; don't auto-close apostrophes (type 'a = foo) and backticks (`Foo)
|
||||
(sp-with-modes 'sml-mode
|
||||
(sp-local-pair "'" nil :actions nil)
|
||||
(sp-local-pair "`" nil :actions nil))
|
||||
|
||||
(map! :map sml-mode-map
|
||||
:i "RET" #'reindent-then-newline-and-indent
|
||||
:i "M-SPC" #'sml-electric-space
|
||||
:i "|" #'sml-electric-pipe
|
||||
:localleader
|
||||
:desc "Run SML" "'" #'run-sml
|
||||
:prefix ("e" . "eval")
|
||||
:desc "Run buffer" "b" #'sml-prog-proc-send-buffer
|
||||
:desc "Run the paragraph" "f" #'sml-send-function
|
||||
:desc "Run region" "r" #'sml-prog-proc-send-region))
|
||||
|
||||
|
||||
(use-package! company-mlton
|
||||
:when (featurep! :completion company)
|
||||
:hook (sml-mode . company-mlton-init))
|
Loading…
Add table
Add a link
Reference in a new issue