jwiegley / emacs-async

Simple library for asynchronous processing in Emacs
GNU General Public License v3.0
828 stars 68 forks source link

How to use packages in async-start? #106

Closed jennykwan closed 5 years ago

jennykwan commented 5 years ago

I'm trying to (require 'alert) or do something similar in async-start. No joy.

As an aside message isn't displaying in the minibuffer for me. Perhaps I'm expecting "echo area" to mean minibuffer area at the bottom and it isn't supposed to be?

thierryvolpiatto commented 5 years ago

Hi, sorry for the delay.

If you just (require 'alert) the child emacs have no clue where this package is located, you have first to give it the value of load-path by using in a quoted lambda ,(async-inject-variables "\\load-path\'")`. HTH.

seagle0128 commented 5 years ago

I can approve it does work.

`(lambda ()
     ,(async-inject-variables "\\`load-path\'")
thierryvolpiatto commented 5 years ago

More exactly:

`(lambda ()
     ,(async-inject-variables "\\`load-path\\'")

sorry for the typo.

jennykwan commented 5 years ago

Thanks!