When I install a package from Melpa in Emacs (version 27.1 on Ubuntu 22.04), the package status changes from 'available' to 'installed', although in the compilation window it is listed as 'available obsolete', but otherwise it appears to install normally. When I restart Emacs and try to load the package from my init.el file, however, I receive an error that the file cannot be found and the package did not load, and the package appears as available again in the package list.
I have tried deleting my elpa directory and restarting, but it didn't work.
Many thanks in advance for any help!
Related
I am using spacemacs and I am attempting to install packages with M-x "package install $package-name". The particular package I am trying to install is SLY, A newer implementation of The SLIME REPL for Common Lisp. When I Install the package when I start up spacemacs it works fine. However when exiting spacemacs it somehow gets deleted. After googling this issue I found this page https://develop.spacemacs.org/doc/FAQ.html. I followed the instructions and changed my .spacemacs config. I added the line dotspacemacs-install-packages 'used-but-keep-unused. What am I doing wrong.
You should add your personal packages to dotspacemacs-additional-packages
What's the best way to install packages in spacemacs?
1. Using M-x package-install
2. Include the packages to be installed in dotspacemacs-additional-packages
3. (use-package )
I couldn't find a definite answer anywhere.
Using the package-install to install packages modified the package-selected-packages automatically. Shall I remove all the packages there and include them in dotspacemacs-additional-packages?
I want to keep my .emacs synchronised between my local mac and my home directory in a linux server. So, I was wondering about removing this automatically modified package-selected-packages variable.
When I tried to install flycheck package on emacs24, it show error that let-alist1.0.1 unavailable. But I heard that let-alist is built-in package of emacs25, I wonder is there any work-around for emacs24?
let-alist is available from ELPA. Use
M-x list-packages
to pull up a list of available packages, then search for let-atlist (C-M-s as usual). Then install it. See also here.
Alternatively, you can download it from here and install it manually. ELPA is easier, though.
I'm on GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.6.0), but when I try to use package (melpa) to install js2-refactor I get this odd error:
package-compute-transaction: Package `emacs-24.1' is unavailable
Any ideas what this could be about? Actually, this might be coming from a dependency of js2-refactor: js2-mode. It gives the same error.
The reason for this can be a lingering old version of package.el in your load path. package.el was officially included in GNU Emacs 24, and the downloadable file for earlier Emacs versions doesn't support dependencies on built-in packages (emacs-24.1 is considered a built-in package here).
Type M-x locate-library RET package to find where Emacs is getting its package.el from. The path it shows should end with lisp/emacs-lisp/package.elc. If it doesn't, try getting rid of the indicated file (or changing the load path so Emacs doesn't find it).
I solved a similar issue by uninstalling and reinstalling emacs (macOS/homewbrew).
I want to install the autocomplete-mode for emacs.
When I searched through the repos (marmalade etc) I found the following packages ac-dabbrev and ac-ja. On googling ac-dabbrev, it seems to be last updated in 2009 -
http://emacswiki.org/emacs/ac-dabbrev.el
On the instructions for installing auto complete mode, in emacs wiki, it leads to a download link -
http://cx4a.org/pub/auto-complete/auto-complete-1.3.1.zip
How should I install the autocomplete mode through the package ac-dabbrev or by dowloading it from the above link ? Or is there an updated package ?
Thanks,
Murtaza
All fresh Emacses are coming with package.el that simplifies installation of 3rd party packages. auto-complete and ac-dabbrev are available from MELPA package repository. Read install instructions on MELPA site, or about package.el/ELPA in more details