evil-mode: refactor config

This commit is contained in:
Henrik Lissner 2016-04-19 22:17:03 -04:00
parent ef8731a3c3
commit c02c77a2aa
3 changed files with 111 additions and 121 deletions

View file

@ -24,5 +24,19 @@
(mapc (lambda (cmd) (narf/evil-ex-undefine-cmd (car cmd)))
',commands))))
;; Shortcuts for the evil expression register
;;;###autoload
(defmacro $= (str &rest args)
`(calc-eval (format ,str ,@args)))
;;;###autoload
(defmacro $r (char)
`(evil-get-register ,char))
;;;###autoload
(defmacro $expand (path)
`(evil-ex-replace-special-filenames ,path))
(provide 'macros-evil)
;;; macros-evil.el ends here