csswatcher - daemon/client for scanning css, less files and build Emacs ac-html completion.
CSS completion generator for emacs ac-html.el.
% csswatcher --daemon
You don't need start in this way, because csswatcher automatically daemonize self. To stop manually:
% csswatcher --stop
The concept of a project is pretty basic like projectile.el. Currently git, mercurial and bazaar repos are considered projects by default. If you want to mark a folder manually as a project just create an empty .projectile or .csswatcher file in it.
I hope you have no .git in root directory (or home ~/.git), because it may be occasion for full system scanning if you forgot setup project directory.
% touch ~/work/bootstrap/dist/.csswatcher % csswatcher ~/work/bootstrap/dist/css/bootstrap.min.css PROJECT: ~/work/bootstrap/dist/ ACSOURCE: ~/.emacs.d/ac-html-csswatcher/completion/9ba471294f1c47ce596177c978b79c95
Above example, show how to parse "~/work/bootstrap/" project directory.
Found project directory for object "~/work/bootstrap/dist/css/bootstrap.min.css"
Directory where completion sources located.
This file, as like .projectile, .git, etc, used to get project directory. But it olso may have some extra, example:
% cat .csswatcher # ignore minified css files "min.css" ignore: min\.css$ # ignore bootstrap css files ignore: bootstrap.*css$ # skip recursive scanning node_modules, it may be slow! skip: node_modules
Another example:
% cat .csswatcher # ignore all css ignore: \.css$ # except app.css use: app\.css # and skip recursive scanning node_modules, it may be slow! skip: node_modules
Regexp for files that be ignored when scanning.
Regexp for match files that allowed to be parsed. Have higher order than "ignore".
Regexp to avoid recursive scan of directories. "node_modules", ".meteor" are good candidates for it!
Symlink that have "../" ignored to prevent circular symlink, however I hope you don't symlink to upper directory (ex. "~/projects" ) that contains your project (ex. ~/projects/myproject). If so, you need ignore it in ".csswatcher"
See
% csswatcher --help
https://github.com/osv/ac-html-csswatcher
https://github.com/cheunghy/ac-html
https://github.com/osv/company-web
Olexandr Sydorchuk (olexandr.syd@gmail.com)
To install CSS::Watcher, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CSS::Watcher
CPAN shell
perl -MCPAN -e shell install CSS::Watcher
For more information on module installation, please visit the detailed CPAN module installation guide.