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).
Related
The way to find definitions was changed in Emacs 25.
A new package called xref has replaced the old etags commands. This package doesn't seem to work for me.
For example:
The command M-x find-tag was replaced by M-x xref-find-definitions but when I use it it says:
No definitions found for: ...
The same TAGS file works with older Emacs.
Anyone can help with this?
I used a newer etags version to rebuild the TAGS file and the problem was fixed.
I assume emacs 25.2 is not compatible with older etags versions.
I recently installed Arch, and the version of emacs that it has comes with an aggressive auto-completion feature that doesn't let me create a new file. It is also very annoying. How do I get rid of it?
I have Archlinux too, but it didn't come with emacs. I think that you have installed this module: http://www.emacswiki.org/emacs/AutoComplete
Check it, and if this is the case, uninstall the addition.
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 pretty new to emacs and I'm currently trying to configure it properly for my needs, but I can't make it load web-mode at all.
So, this is what I've done:
Downloaded web-mode.el from GitHub
Made sure the file is located in the correct directory: ~/.emacs.d/web-mode.el
Used the installation instructions from the official page
My .emacs file now looks like this
Issue:
When I'm trying to edit any of the file types specified in the .emacs file, it only runs the default modes. PHP Abbrev for PHP etc... I'm not receiving any error messages and when I'm running --debug-init it does not give any output.
Emacs version: GNU Emacs 23.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.18.9) of 2012-03-01 on sl6.fnal.gov
OS: Scientific Linux
Does anyone know how I can troubleshoot this further, or have solved similar issues?
You should let el-get install it for you. El-get is a package manager for emacs. It can install packages from github, emacswiki, elpa, an url, … http://wikemacs.org/index.php/El-get
It's very handy, you can update scripts easily, it manages dependencies, it lets you discover many stuff, you can easily share your config accross machines, etc.
Emacs 24 has package.el or ELPA by default. One can install it on emacs 23, but my experience isn't conclusive so I'd advise sticking with el-get, which is great.
I just installed the emacs-starter-kit into Debian Wheezy with the emacs-snapshot. I am getting and error:
Loading /home/felixdz/.emacs.d/starter-kit-registers.el (source)...done
loaded /home/felixdz/.emacs.d/starter-kit-registers.el
../.emacs.d/starter-kit.el: `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'.
Loading /home/felixdz/.emacs.d/starter-kit.el (source)...done
loaded /home/felixdz/.emacs.d/starter-kit.el
For information about GNU Emacs and the GNU system, type C-h C-a.
Package assoc is obsolete!
How do I fix this error? I am a completer beginner with Emacs.
It's not really an error, but a warning.
And it's not aimed at you but at the package maintainers of
some package that you load from the starter kit.
The point is that there's a vanilla Emacs 24.3, which doesn't give warnings,
and then there are various libraries written for earlier versions of Emacs
that you're using for Emacs 24.3. Hence the warnings.
It will still work for now, but probably when the next Emacs comes out
the assoc package will produce an error instead of a warning like now.
You can choose now if you want the emacs-starter-kit or vanilla Emacs
or something else. I learned my way from vanilla Emacs, doing the customizations
myself.