Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions smartparens-ml.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

;; Author: Ta Quang Trung <taquangtrungvn@gmail.com>
;; Matus Goljer <matus.goljer@gmail.com>
;; Louis Roché <louis@louisroche.net>
;; Maintainer: Matus Goljer <matus.goljer@gmail.com>
;; Created: 14 July 2016
;; Keywords: smartparens, ML, ocaml, reason
Expand Down Expand Up @@ -50,8 +51,23 @@
(require 'smartparens)

;;; Local pairs for ML-family languages
(sp-with-modes '(tuareg-mode fsharp-mode) (sp-local-pair "(*" "*)" ))
(sp-with-modes '(reason-mode) (sp-local-pair "/*" "*/" ))

(sp-with-modes '(fsharp-mode)
(sp-local-pair "(*" "*)" ))

(sp-with-modes '(tuareg-mode)
;; Disable ` because it is used in polymorphic variants
(sp-local-pair "`" nil :actions nil)
;; Disable ' because it is used in value names and types
(sp-local-pair "'" nil :actions nil)
(sp-local-pair "(*" "*)" ))

(sp-with-modes '(reason-mode)
;; Disable ` because it is used in polymorphic variants
(sp-local-pair "`" nil :actions nil)
;; Disable ' because it is used in value names and types
(sp-local-pair "'" nil :actions nil)
(sp-local-pair "/*" "*/" ))

(provide 'smartparens-ml)
;;; smartparens-ml.el ends here