Skip to content

manateelazycat/css-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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
  • 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 <path-to-css-sort> used below).

In your ~/.emacs, add the following two lines:

(add-to-list 'load-path "<path-to-css-sort>") ; add css-sort to your load-path
(require 'css-sort)

Usage

M-x css-sort

About

An Emacs extension you can sort CSS attributables automatically.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published