Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions smartparens-config.el
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ ID, ACTION, CONTEXT."
(eval-after-load 'haskell-mode '(require 'smartparens-haskell))
(--each sp--html-modes
(eval-after-load it '(require 'smartparens-html)))
(eval-after-load 'css-mode '(require 'smartparens-css))
(eval-after-load 'latex '(require 'smartparens-latex))
(eval-after-load 'lua-mode '(require 'smartparens-lua))
(eval-after-load 'lua-ts-mode '(require 'smartparens-lua))
Expand Down
46 changes: 46 additions & 0 deletions smartparens-css.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
;;; smartparens-css.el --- Additional configuration for CSS mode. -*- lexical-binding: t; -*-
;;
;; Author: Konstantin Kharlamov <[email protected]>
;; Maintainer: Matus Goljer <[email protected]>
;; Created: 25 December 2024
;; 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 configuation to make smartparens insertion behavae similarly to
;; SublimeText editor. To use it, simply add:
;;
;; (require 'smartparens-css)
;;
;; into your configuration. You can use this in conjunction with the
;; default config or your own configuration.
;;
;;; Code:


(require 'smartparens)

(sp-local-pair 'css-mode "/*" "*/")

(provide 'smartparens-css)
;;; smartparens-css.el ends here