-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #900 from Khady/ocaml-reason-disable-pairs
disable ' and ` for ocaml and reasonml
- Loading branch information
Showing
1 changed file
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
|
||
;; Author: Ta Quang Trung <[email protected]> | ||
;; Matus Goljer <[email protected]> | ||
;; Louis Roché <[email protected]> | ||
;; Maintainer: Matus Goljer <[email protected]> | ||
;; Created: 14 July 2016 | ||
;; Keywords: smartparens, ML, ocaml, reason | ||
|
@@ -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 |