mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -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)
|
||||
(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")))
|
||||
(not (file-readable-p parinfer-rust-library)))
|
||||
(warn! (concat "Could not read " parinfer-rust-library ". `parinfer-rust-mode' won't work")))
|
||||
|
Reference in New Issue
Block a user