mirror of https://github.com/Chizi123/.emacs.d.git

Chizi123
2018-11-19 a4b9172aefa91861b587831e06f55b1e19f3f3be
commit | author | age
5cb5f7 1 ;;; smartparens-javascript.el --- Additional configuration for JavaScript based modes.  -*- lexical-binding: t; -*-
C 2
3 ;; Copyright (c) 2017 Marinin Tim
4 ;; Author: Tim Marinin <mt@marinin.xyz>
5 ;; Maintainer: Tim Marinin <mt@marinin.xyz>
6 ;; Created: 2017-03-03
7 ;; Keywords: abbrev convenience editing javascript
8 ;; URL: https://github.com/Fuco1/smartparens
9
10 ;; This file is not part of GNU Emacs.
11
12 ;;; License:
13
14 ;; This file is part of Smartparens.
15
16 ;; Smartparens is free software; you can redistribute it and/or modify
17 ;; it under the terms of the GNU General Public License as published by
18 ;; the Free Software Foundation, either version 3 of the License, or
19 ;; (at your option) any later version.
20
21 ;; Smartparens is distributed in the hope that it will be useful,
22 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
23 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24 ;; GNU General Public License for more details.
25
26 ;; You should have received a copy of the GNU General Public License
27 ;; along with Smartparens.  If not, see <http://www.gnu.org/licenses/>.
28
29 ;;; Commentary:
30
31 ;; This file provides some additional configuration for JavaScript based
32 ;; modes.  To use it, simply add:
33 ;;
34 ;; (require 'smartparens-javascript)
35 ;;
36 ;; into your configuration.  You can use this in conjunction with the
37 ;; default config or your own configuration.
38 ;;
39 ;; If you have good ideas about what should be added please file an
40 ;; issue on the github tracker.
41 ;;
42 ;; For more info, see github readme at
43 ;; https://github.com/Fuco1/smartparens
44
45 ;;; Code:
46
47 (require 'smartparens)
48
49 ;; (|sys).path.append---the dot should not travel with the closing
50 ;; paren
51 (--each '(js-mode javascript-mode js2-mode typescript-mode rjsx-mode)
52   (add-to-list 'sp-sexp-suffix (list it 'regexp "")))
53
54 (provide 'smartparens-javascript)
55 ;;; smartparens-javasript.el ends here