From 08fbd38d228a356e919726485d21dae620d5f58f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20Roch=C3=A9?= Date: Thu, 24 May 2018 09:06:43 +0000 Subject: [PATCH] disable ' and ` for ocaml and reasonml --- smartparens-ml.el | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/smartparens-ml.el b/smartparens-ml.el index feec3c5e..55008c4e 100644 --- a/smartparens-ml.el +++ b/smartparens-ml.el @@ -5,6 +5,7 @@ ;; Author: Ta Quang Trung ;; Matus Goljer +;; Louis Roché ;; Maintainer: Matus Goljer ;; 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