34 lines
884 B
EmacsLisp
34 lines
884 B
EmacsLisp
(defvar pcre2el-packages
|
|
'(
|
|
pcre2el
|
|
))
|
|
|
|
|
|
(defun pcre2el/init-pcre2el ()
|
|
(use-package pcre2el
|
|
:defer t
|
|
:commands rxt-fontify-regexp-at-point
|
|
:init
|
|
(progn
|
|
;;
|
|
(spacemacs/declare-prefix "R" "pcre2el")
|
|
(evil-leader/set-key
|
|
"R/" 'rxt-explain
|
|
"Rc" 'rxt-convert-syntax
|
|
"Rx" 'rxt-convert-to-rx
|
|
"R'" 'rxt-convert-to-strings
|
|
"Rpe" 'rxt-pcre-to-elisp
|
|
"R%" 'pcre-query-replace-regexp
|
|
"Rpx" 'rxt-pcre-to-rx
|
|
"Rps" 'rxt-pcre-to-sre
|
|
"Rp'" 'rxt-pcre-to-strings
|
|
"Rp/" 'rxt-explain-pcre
|
|
"Re/" 'rxt-explain-elisp
|
|
"Rep" 'rxt-elisp-to-pcre
|
|
"Rex" 'rxt-elisp-to-rx
|
|
"Res" 'rxt-elisp-to-sre
|
|
"Re'" 'rxt-elisp-to-strings
|
|
"Ret" 'rxt-toggle-elisp-rx
|
|
"Rt" 'rxt-toggle-elisp-rx
|
|
"Rh" 'rxt-fontify-regexp-at-point))))
|
|
|