Update parinfer module to comply with review.

Also add support for BSD systems.

Signed-off-by: Johan Thoren <johan@thoren.xyz>
This commit is contained in:
Johan Thoren 2021-02-27 21:01:19 +01:00
parent ec747395c6
commit 4ff23752f2
No known key found for this signature in database
GPG key ID: C8808B69584976F6
3 changed files with 59 additions and 43 deletions

View file

@ -0,0 +1,11 @@
;;; editor/parinfer/doctor.el -*- lexical-binding: t; -*-
(when (featurep! +rust)
(unless (fboundp 'module-load)
(warn! "Your emacs wasn't built with dynamic modules support. `parinfer-rust-mode' won't work"))
(when (and (eq system-type 'berkeley-unix)
(not (file-readable-p
(concat user-emacs-directory ".local/etc/parinfer-rust/libparinfer_rust.so"))))
(warn! (concat "Could not read " user-emacs-directory
".local/etc/parinfer-rust/libparinfer_rust.so. "
"`parinfer-rust-mode' won't work"))))