emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/smartparens aa44a182cd 1/4: Fix #1135 Add support for EDoc


From: ELPA Syncer
Subject: [nongnu] elpa/smartparens aa44a182cd 1/4: Fix #1135 Add support for EDoc verbatim quoting for erlang comments
Date: Wed, 18 Jan 2023 09:00:28 -0500 (EST)

branch: elpa/smartparens
commit aa44a182cd74a998d7a37903466be14ef1dce474
Author: Johnny Ruiz <johnny@ruiz-usa.com>
Commit: Johnny Ruiz <johnny@ruiz-usa.com>

    Fix #1135 Add support for EDoc verbatim quoting for erlang comments
---
 smartparens-config.el |  1 +
 smartparens-erlang.el | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/smartparens-config.el b/smartparens-config.el
index 3b8e8f594c..a1f02f9351 100644
--- a/smartparens-config.el
+++ b/smartparens-config.el
@@ -106,6 +106,7 @@ ID, ACTION, CONTEXT."
 (eval-after-load 'crystal-mode             '(require 'smartparens-crystal))
 (eval-after-load 'elixir-mode              '(require 'smartparens-elixir))
 (eval-after-load 'enh-ruby-mode            '(require 'smartparens-ruby))
+(eval-after-load 'erlang-mode              '(require 'smartparens-erlang))
 (eval-after-load 'ess                      '(require 'smartparens-ess))
 (eval-after-load 'go-mode                  '(require 'smartparens-go))
 (eval-after-load 'haskell-interactive-mode '(require 'smartparens-haskell))
diff --git a/smartparens-erlang.el b/smartparens-erlang.el
new file mode 100644
index 0000000000..767ecb4b1f
--- /dev/null
+++ b/smartparens-erlang.el
@@ -0,0 +1,55 @@
+;;; smartparens-erlang.el --- Additional configuration for erlang-mode.  -*- 
lexical-binding: t; -*-
+
+;; Copyright (C) 2022 Johnny Ruiz
+
+;; Created: 6 September 2022
+;; Keywords: abbrev convenience editing
+;; 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 Erlang.  To use
+;; it, simply add:
+;;
+;; (require 'smartparens-config)
+;;
+;; alternatively, you can explicitly load these preferences:
+;;
+;; (require 'smartparens-erlang)
+;;
+;; in your configuration.
+
+;; For more info, see github readme at
+;; https://github.com/Fuco1/smartparens
+
+;;; Code:
+(require 'smartparens)
+
+(declare-function erlang-mode "erlang-mode")
+
+(sp-with-modes 'erlang-mode
+  (sp-local-pair "`" "'"
+                 :when '(sp-in-comment-p)))
+
+(provide 'smartparens-erlang)
+
+;;; smartparens-erlang.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]