fdd4e944ef
Replace `SPC m c c` and `C-c C-c` in the dotfile Resolve #1210
34 lines
882 B
EmacsLisp
34 lines
882 B
EmacsLisp
(setq 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))))
|
|
|