[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/smartparens be97b92451 5/5: Merge pull request #1142 from
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/smartparens be97b92451 5/5: Merge pull request #1142 from jmorag/unison-lang |
Date: |
Wed, 18 Jan 2023 15:01:06 -0500 (EST) |
branch: elpa/smartparens
commit be97b9245133cfd375fddfe873f6234e01d13704
Merge: 708c9753b2 512a3a5284
Author: Matus Goljer <matus.goljer@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #1142 from jmorag/unison-lang
---
smartparens-config.el | 1 +
smartparens-unison.el | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 58 insertions(+)
diff --git a/smartparens-config.el b/smartparens-config.el
index a1f02f9351..fd2fb467f5 100644
--- a/smartparens-config.el
+++ b/smartparens-config.el
@@ -130,6 +130,7 @@ ID, ACTION, CONTEXT."
(eval-after-load 'text-mode '(require 'smartparens-text))
(eval-after-load 'tuareg '(require 'smartparens-ml))
(eval-after-load 'fsharp-mode '(require 'smartparens-ml))
+(eval-after-load 'unisonlang-mode '(require 'smartparens-unison))
(--each '(js js2-mode)
(eval-after-load it '(require 'smartparens-javascript)))
(provide 'smartparens-config)
diff --git a/smartparens-unison.el b/smartparens-unison.el
new file mode 100644
index 0000000000..9161c97202
--- /dev/null
+++ b/smartparens-unison.el
@@ -0,0 +1,57 @@
+;;; smartparens-unison.el --- Additional configuration for Unison -*-
lexical-binding: t; -*-
+
+;; Copyright (C) 2022 Joseph Morag
+
+;; Author: Joseph Morag <jm@josephmorag.com>
+;; Maintainer: Joseph Morag <jm@josephmorag.com>
+;; Created: 04 December 2022
+;; Keywords: smartparens, unison
+;; URL: https://github.com/Fuco1/smartparens
+
+;; This file is not part of GNU Emacs.
+
+;;; License:
+
+;; This file is part of Smartparens.
+
+;; Smartparens is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; Smartparens is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with Smartparens. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;; This file provides some additional configuration for Unison.
+;; To use it, simply add:
+;;
+;; (require 'smartparens-unison)
+;;
+;; into your configuration. You can use this in conjunction with the
+;; default config or your own configuration.
+;;
+;; If you have good ideas about what should be added please file an
+;; issue on the github tracker.
+;;
+;; For more info, see github readme at
+;; https://github.com/Fuco1/smartparens
+
+;;; Code:
+
+(require 'smartparens)
+
+(sp-with-modes '(unisonlang-mode)
+ ;; Disable ' because it is used as a shortcut to wrap a value in
+ ;; lambda () -> value
+ ;; to make it lazy
+ (sp-local-pair "'" nil :actions nil))
+
+(provide 'smartparens-unison)
+;;; smartparens-unison.el ends here