2018-06-09 22:01:09 +10:00
|
|
|
;; -*- no-byte-compile: t; -*-
|
|
|
|
;;; editor/parinfer/packages.el
|
|
|
|
|
2021-02-18 21:49:49 +01:00
|
|
|
(when (and (not (featurep! +rust)) (featurep! :editor evil))
|
2018-09-26 10:42:09 -04:00
|
|
|
;; Parinfer uses `evil-define-key' without loading evil, so if evil is
|
|
|
|
;; installed *after* parinfer, parinfer will throw up void-function errors.
|
|
|
|
;; because evil-define-key (a macro) wasn't expanded at compile-time. So we
|
|
|
|
;; make sure evil is installed before parinfer...
|
|
|
|
(package! evil)
|
|
|
|
;; ...and that it can see `evil-define-key' if evil was installed in a
|
|
|
|
;; separate session:
|
|
|
|
(autoload 'evil-define-key "evil-core" nil nil 'macro))
|
|
|
|
|
2021-02-18 21:49:49 +01:00
|
|
|
(if (featurep! +rust)
|
|
|
|
(package! parinfer-rust-mode :pin "c825606e6aca4a2ed18c0af321df5f36a3c8c774")
|
|
|
|
(package! parinfer :pin "8659c99a9475ee34af683fdf8f272728c6bebb3a"))
|