diff --git a/smartparens-config.el b/smartparens-config.el index 981641f5..461f953f 100644 --- a/smartparens-config.el +++ b/smartparens-config.el @@ -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)) diff --git a/smartparens-css.el b/smartparens-css.el new file mode 100644 index 00000000..012a2b02 --- /dev/null +++ b/smartparens-css.el @@ -0,0 +1,46 @@ +;;; smartparens-css.el --- Additional configuration for CSS mode. -*- lexical-binding: t; -*- +;; +;; Author: Konstantin Kharlamov +;; Maintainer: Matus Goljer +;; 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 . +;; +;;; 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