https://github.com/manateelazycat/css-sort
An Emacs extension you can sort CSS attributables automatically.
https://github.com/manateelazycat/css-sort
Last synced: 8 months ago
JSON representation
An Emacs extension you can sort CSS attributables automatically.
- Host: GitHub
- URL: https://github.com/manateelazycat/css-sort
- Owner: manateelazycat
- Created: 2018-11-20T15:05:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-22T05:52:13.000Z (almost 7 years ago)
- Last Synced: 2024-12-30T19:35:17.765Z (9 months ago)
- Language: Emacs Lisp
- Size: 9.77 KB
- Stars: 13
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What is css-sort.el ?
css-sort.el is an Emacs extension you can sort CSS attributables automatically.It has the following advantages:
* You don't need to select the sorted area, it can sort all the attributes automatically with one command "css-sort".
* Sort CSS attributes exactly in accordance with [CSS sorting rules](http://alloyteam.github.io/CodeGuide/#css-declaration-order)
* The statement starting with ◎ is automatically skipped and not sorted.
* @include attribute will automatically be placed in the beginning of the attribute area in the scan order.## Installation
Clone or download this repository (path of the folder is the `` used below).In your `~/.emacs`, add the following two lines:
```Elisp
(add-to-list 'load-path "") ; add css-sort to your load-path
(require 'css-sort)
```## Usage
M-x css-sort