An open API service indexing awesome lists of open source software.

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.

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