forked from FG42/FG42
1
0
Fork 0

Merge branch 'master' of github.com:FG42/FG42

This commit is contained in:
Sameer Rahmani 2017-03-23 01:20:47 +04:30
commit eb22103970
1 changed files with 9 additions and 0 deletions

View File

@ -117,4 +117,13 @@
(build-ctag-file))
(etags-select-find-tag-at-point))
(setq erb-regex (concat "\\([^\\\"']+\\.\\)\\(" (rx (or "jpg" "png" "gif" "svg")) "\\)"))
;;;###autoload
(defun erbify-image-paths ()
(interactive)
(message erb-regex)
(replace-regexp erb-regex "<%= image_path '\\1\\2' %>"))
(provide 'extensions/ruby/setup)