mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix(parinfer): robust check for shared Rust object
This helps other platforms like Nix that put shared objects in interesting places.
This commit is contained in:
@ -3,8 +3,5 @@
|
|||||||
(unless (fboundp 'module-load)
|
(unless (fboundp 'module-load)
|
||||||
(warn! "Your emacs wasn't built with dynamic modules support. `parinfer-rust-mode' won't work"))
|
(warn! "Your emacs wasn't built with dynamic modules support. `parinfer-rust-mode' won't work"))
|
||||||
(when (and (eq system-type 'berkeley-unix)
|
(when (and (eq system-type 'berkeley-unix)
|
||||||
(not (file-readable-p (concat user-emacs-directory
|
(not (file-readable-p parinfer-rust-library)))
|
||||||
".local/etc/parinfer-rust/libparinfer_rust.so"))))
|
(warn! (concat "Could not read " parinfer-rust-library ". `parinfer-rust-mode' won't work")))
|
||||||
(warn! (concat "Could not read " user-emacs-directory
|
|
||||||
".local/etc/parinfer-rust/libparinfer_rust.so. "
|
|
||||||
"`parinfer-rust-mode' won't work")))
|
|
||||||
|
Reference in New Issue
Block a user