Add support for parinfer-rust-mode (#1)
This commit adds support for the module flag +rust, which will use parinfer-rust-mode instead of parinfer-mode. Parinfer-rust-mode makes use of an external library named parinfer-rust to do the heavy lifting. As such, --with-modules must be enabled.
This commit is contained in:
parent
3f4cc77d2a
commit
ec747395c6
3 changed files with 53 additions and 25 deletions
|
@ -1,7 +1,7 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; editor/parinfer/packages.el
|
||||
|
||||
(when (featurep! :editor evil)
|
||||
(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
|
||||
|
@ -11,4 +11,6 @@
|
|||
;; separate session:
|
||||
(autoload 'evil-define-key "evil-core" nil nil 'macro))
|
||||
|
||||
(package! parinfer :pin "8659c99a9475ee34af683fdf8f272728c6bebb3a")
|
||||
(if (featurep! +rust)
|
||||
(package! parinfer-rust-mode :pin "c825606e6aca4a2ed18c0af321df5f36a3c8c774")
|
||||
(package! parinfer :pin "8659c99a9475ee34af683fdf8f272728c6bebb3a"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue