Skip to content

Commit

Permalink
Add check for dynamic module support in Emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbarclay committed Jul 4, 2020
1 parent cd3fe2e commit 59e9c1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parinfer-rust-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
(cond
((eq system-type 'darwin) "parinfer-rust-darwin.so")
((eq system-type 'gnu/linux) "parinfer-rust-linux.so"
"parinfer-rust-linux.so")))))
"parinfer-rust-linux.so"))))
(unless (bound-and-true-p module-file-suffix)
(error "Emacs was not compiled with the '--with-modules'. Unable to load parinfer-rust-mode")))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; User customization options
Expand Down

0 comments on commit 59e9c1b

Please sign in to comment.