mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(css-electric-keys): electrick->electric.
(css-mode): Update correspondingly.
This commit is contained in:
parent
088c8c37e6
commit
fb7d927563
2 changed files with 9 additions and 5 deletions
|
|
@ -169,7 +169,7 @@
|
|||
"word-spacing" "z-index")
|
||||
"Identifiers for properties.")
|
||||
|
||||
(defcustom css-electrick-keys '(?\} ?\;) ;; '()
|
||||
(defcustom css-electric-keys '(?\} ?\;) ;; '()
|
||||
"Self inserting keys which should trigger re-indentation."
|
||||
:type '(repeat character)
|
||||
:options '((?\} ?\;)))
|
||||
|
|
@ -263,10 +263,10 @@
|
|||
(set (make-local-variable 'indent-line-function) 'css-indent-line)
|
||||
(set (make-local-variable 'fill-paragraph-function)
|
||||
'css-fill-paragraph)
|
||||
(when css-electrick-keys
|
||||
(when css-electric-keys
|
||||
(let ((fc (make-char-table 'auto-fill-chars)))
|
||||
(set-char-table-parent fc auto-fill-chars)
|
||||
(dolist (c css-electrick-keys)
|
||||
(dolist (c css-electric-keys)
|
||||
(aset fc c 'indent-according-to-mode))
|
||||
(set (make-local-variable 'auto-fill-chars) fc))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue