Skip to content

Commit ce0b44c

Browse files
committed
Support /* */-comments in CSS mode
1 parent b0d935c commit ce0b44c

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

smartparens-config.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ ID, ACTION, CONTEXT."
144144
(eval-after-load 'haskell-mode '(require 'smartparens-haskell))
145145
(--each sp--html-modes
146146
(eval-after-load it '(require 'smartparens-html)))
147+
(eval-after-load 'css-mode '(require 'smartparens-css))
147148
(eval-after-load 'latex '(require 'smartparens-latex))
148149
(eval-after-load 'lua-mode '(require 'smartparens-lua))
149150
(eval-after-load 'lua-ts-mode '(require 'smartparens-lua))

smartparens-css.el

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
;;; smartparens-css.el --- Additional configuration for CSS mode. -*- lexical-binding: t; -*-
2+
;;
3+
;; Author: Konstantin Kharlamov <Hi-Angel@yandex.ru>
4+
;; Maintainer: Matus Goljer <matus.goljer@gmail.com>
5+
;; Created: 16 December 2024
6+
;; Keywords: abbrev convenience editing
7+
;; URL: https://github.com/Fuco1/smartparens
8+
;;
9+
;; This file is not part of GNU Emacs.
10+
;;
11+
;;; License:
12+
;;
13+
;; This file is part of Smartparens.
14+
;;
15+
;; Smartparens is free software; you can redistribute it and/or modify
16+
;; it under the terms of the GNU General Public License as published by
17+
;; the Free Software Foundation, either version 3 of the License, or
18+
;; (at your option) any later version.
19+
;;
20+
;; Smartparens is distributed in the hope that it will be useful,
21+
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
22+
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+
;; GNU General Public License for more details.
24+
;;
25+
;; You should have received a copy of the GNU General Public License
26+
;; along with Smartparens. If not, see <http://www.gnu.org/licenses/>.
27+
;;
28+
;;; Commentary:
29+
;;
30+
;; This file configuation to make smartparens insertion behavae similarly to
31+
;; SublimeText editor. To use it, simply add:
32+
;;
33+
;; (require 'smartparens-css)
34+
;;
35+
;; into your configuration. You can use this in conjunction with the
36+
;; default config or your own configuration.
37+
;;
38+
;;; Code:
39+
40+
41+
(require 'smartparens)
42+
43+
(sp-local-pair 'css-mode "/*" "*/")
44+
45+
(provide 'smartparens-css)
46+
;;; smartparens-css.el ends here

0 commit comments

Comments
 (0)