Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hlissner/emacs-counsel-css

An ivy-mode backend for css selectors (scss/less too)
https://github.com/hlissner/emacs-counsel-css

Last synced: about 2 months ago
JSON representation

An ivy-mode backend for css selectors (scss/less too)

Awesome Lists containing this project

README

        

[![MELPA](http://melpa.org/packages/counsel-css-badge.svg?style=flat-square)](http://melpa.org/#/counsel-css)
[![GPLv3](https://img.shields.io/badge/license-GPLv3-green.svg?style=flat-square)](./LICENSE)

# counsel-css

`counsel-css` is an ivy-mode backend for css selectors (works for SCSS, LESS and
Stylus too). It also has a hook to integrate its parser into Imenu.

This is an alternative to [helm-css-scss]. The parser was ~~lifted~~
**borrowed** from [helm-css-scss], so much of the credit is his.

![screenshot](../screenshots/01.png)

## Installation

`M-x package-install RET counsel-css`

```emacs-lisp
(require 'counsel-css)
```

## Usage

This plugin doesn't bind keys, but it defines the command `counsel-css`.

## IMenu integration

To activate imenu integration:

`(add-hook 'css-mode-hook #'counsel-css-imenu-setup)`

NOTE: If you only want imenu support, this plugin doesn't pull in its
dependencies until you use the `counsel-css` command.

[helm-css-scss]: https://github.com/ShingoFukuyama/helm-css-scss