doomemacs/modules/editor/parinfer/packages.el
Johan Thoren 4ff23752f2
Update parinfer module to comply with review.
Also add support for BSD systems.

Signed-off-by: Johan Thoren <johan@thoren.xyz>
2021-02-27 21:01:19 +01:00

19 lines
813 B
EmacsLisp

;; -*- no-byte-compile: t; -*-
;;; editor/parinfer/packages.el
(when (and (not (featurep! +rust)) (featurep! :editor evil))
;; 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))
(if (featurep! +rust)
(package! parinfer-rust-mode :pin "c825606e6aca4a2ed18c0af321df5f36a3c8c774")
(package! parinfer
:recipe (:host github :repo "emacsattic/parinfer")
:pin "8659c99a9475ee34af683fdf8f272728c6bebb3a"))