Every time I git clone my configuration of Emacs into a new machine and start Emacs, there will be error message in Emacs:
error: Unable to activate package 'company-auctex'.
Required package 'auctex-11.87' is unavailable
I know I can fix this problem by package-install auctex manually, but is there a way that I can check if activating company-auctex package failed and then install auctex automatically?
I've trying to use the following in my init.el:
(unless (package-installed-p 'auctex)
(package-install 'auctex))
But it doesn't work at all and keeps saying the same error message everytime I start my emacs.
So how to fix this problem?
Every time I git clone my configuration of Emacs into a new machine and start Emacs, there will be error message in Emacs:
I know I can fix this problem by
package-install auctexmanually, but is there a way that I can check if activating company-auctex package failed and then install auctex automatically?I've trying to use the following in my init.el:
But it doesn't work at all and keeps saying the same error message everytime I start my emacs.
So how to fix this problem?