Skip to content

Commit

Permalink
Ensure dependencies are loaded
Browse files Browse the repository at this point in the history
When loading this package emacs would complain of `Symbol’s function definition is void: string-trim`

The reasons being that string-trim from subr-x was not properly being loaded. 

The error goes away with this commit.

If there are any dependencies that should be `eval-when-compile` for performance or other reasons feel free to let me know.

Notes:

https://github.com/immerrr/lua-mode
https://github.com/Ruin0x11/janet-mode
https://github.com/ALSchwalm/janet-mode
https://github.com/fabnicol/metal-mercury-mode
  • Loading branch information
jgarte authored Oct 3, 2021
1 parent 4422d82 commit a0fcf24
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mint-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@
;; For more info on mint, visit: https://mint-lang.com

;;; Code:
(eval-when-compile
(require 'js)
(require 'seq)
(require 'subr-x))
(require 'js)
(require 'seq)
(require 'subr-x)

;; Utils
(defun mint-get-tokens (filename)
Expand Down

0 comments on commit a0fcf24

Please sign in to comment.