Skip to content

lululau/ragtag-el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ragtag-el

The ragtag Vim plugin clone for Emacs

Usage:

(autoload 'ragtag-mode "ragtag")
(add-hook 'web-mode-hook 'ragtag-mode)
(add-hook 'html-erb-mode-hook 'ragtag-mode)

Key bindings:

Mapping Change to Function
C-x = foo<%= ^ %> ragtag/insert-eval-mark
C-x + <%= foo^ %> ragtag/wrap-eval-mark
C-x - foo<% ^ %> ragtag/insert-expr-mark
C-x _ <% foo^ %> ragtag/wrap-expr-mark
C-x ' foo<%# ^ %> ragtag/insert-comment-mark
C-x " <%# foo^ %> ragtag/wrap-comment-mark
C-x SPC <foo>^</foo> ragtag/wrap-inline-tag
C-x <foo>\n^\n</foo> ragtag/wrap-multiline-tag
C-x ! <!doctype html> ragtag/insert-doctype-tag
C-x @ <link rel="stylesheet" href="/stylesheets/^.css" /> ragtag/insert-link-tag
C-x $ <script type="text/javascript" src="/javascripts/^.js" /> ragtag/insert-js-mark
C-u C-x @ <%= stylesheet_link_tag '^' %> ragtag/insert-link-tag
C-u C-x $ <%= javascript_include_tag '^' %> ragtag/insert-js-mark
C-x # <meta charset="utf-8" /> ragtag/insert-meta-mark

About

The ragtag Vim plugin clone for Emacs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published