I have some issues with the installation of autocompletion on emacs 24.5.
I cloned https://github.com/auto-complete/auto-complete.git repo in my .emacs.d folder located here : C:\Users\Ben\AppData\Roaming\.emacs.d
I run :
M-x load-file C:\Users\Ben\AppData\Roaming\.emacs.d\auto-complete\etc\install.el and anwser to install it in : C:\Users\Ben\AppData\Roaming\.emacs.d\lisp
Emacs answered : Successfully installed!
Then I add the following lines to my .emacs:
(add-to-list 'load-path "c:/Users/Ben/AppData/Roaming/.emacs.d/lisp")
(require 'auto-complete-config)
(ac-config-default)
When I run emacs, I have the following error :
Warning (initialization): An error occurred while loading `c:/Users/Ben/AppData/Roaming/.emacs':
File error: Cannot open load file, no such file or directory, popup.
Here is my complete .emacs file :
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'load-path "c:/Users/Ben/AppData/Roaming/.emacs.d/lisp")
(require 'auto-complete-config)
(ac-config-default)
What's wrong ? How to install auto-complete on emacs ?
You need to install the popup library: https://github.com/auto-complete/popup-el
You also need this: https://github.com/tjarvstrand/pos-tip
Related
I am trying to install the prop-menu package for emacs (on WSL2) and here's my init.el :
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/"))
However, when I run the M-x package-list-packages command in the emacs GUI, I am not able to see the package listed :
I am on emacs version 26.3 for OS X.
This is my ~/.emacs.d/init.el file
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
I have run M-x eval-buffer on this init.el file. I would like to install packages from Melpa such as move-text. However M-x package-list doesn't show move-text. This is the case for many packages. How do I get alllll the packages from Melpa available for M-x package-install?
It took a few things to fix this. First of a M-x package-list is outdated by M-x list-packages (thanks #Y.E.).
Now when I M-x list-packages I got the following error: Can't use the package manager. It says The TLS Connection to elpa.org:443 is insecure.
To fix this I found this link (https://www.reddit.com/r/emacs/comments/pyevj8/what_should_i_do_cant_use_the_package_manager_it/) which advises adding package-archives for gnu and a mirror of melpa. My init.el now looks like this:
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
'(package-archives
'(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://www.mirrorservice.org/sites/stable.melpa.org/packages/")))
(package-initialize)
And it seems that it Can fetch all packages from Melpa. I don't entirely understand why gnu is necessary but it seems to be.
I'm trying to set up emacs 24 to use with clojure on osx. I've installed emacs 24 from emacsformacosx.com, and I've added the following code to ~/.emacs.d/init.el:
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
;; Add in your own as you wish:
(defvar my-packages '(starter-kit starter-kit-lisp)
"A list of packages to ensure are installed at launch.")
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
However when I do M-x package-refresh-contents, and package-install, clojure-mode and the other marmalade packages don't show up. The starter kit must be installed since ido-mode works, so I'm not sure what's happening. I can go to ~/.emacs.d/elpa/archive/marmalade and see that the packages are there. Any ideas what I'm doing wrong?
It turns out
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)
Needed to be in ~/.emacs not ~/.emacs.d/init.el
I tried to install yasnippet using the "normal install" protocol given here. After placing the yasnippet-0.6.1c folder in ~/.emacs.d/plugins/, I tried to eval the following in my .emacs:
(add-to-list 'load-path
"~/.emacs.d/plugins/yasnippet-0.6.1c")
(require 'yasnippet) ;; not yasnippet-bundle
(yas/initialize)
(yas/load-directory "~/.emacs.d/plugins/yasnippet-0.6.1c/snippets")
At the second sexp, I get the backtrace:
Debugger entered--Lisp error: (void-variable yasnippet-bundle)
eval(yasnippet-bundle)
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp)
recursive-edit()
byte-code(...
Could anyone point me in the right direction with this? I'm not familiar enough with Emacs to be certain that this is not a user error, but it would seem from the backtrace that at least the loadpath was correct.
This is yasnippet 0.6.1c. I can reproduce it on Aquamacs 1.9 and GNU Emacs 22.2.1 under OSX 10.4 and GNU Emacs 23 under Ubuntu 10.04. Thanks in advance for any advice!
(add-to-list 'load-path
"~/.emacs.d/plugins/yasnippet-0.6.1c")
How I can use the Emacs Code Browser v2.40 with my fresh installed Emacs 23.2 (Debian distro)
In my init.el I have:
(semantic-mode)
(add-to-list 'load-path
"~/.emacs.d/plugins/ecb-2.40")
(require 'ecb)
When I run Emacs, I get an Error message on statrup:
File error: Cannot open load file, semantic-ctxt
I have read CEDET suite is build in from Emacs 23, so I don't have installed it.
This did the trick for me with 2.40:
(require 'semantic/analyze)
(provide 'semantic-analyze)
(provide 'semantic-ctxt)
(provide 'semanticdb)
(provide 'semanticdb-find)
(provide 'semanticdb-mode)
(provide 'semantic-load)
(add-to-list 'load-path "~/ecb-2.40")
(require 'ecb)
I haven't been using it for long, but the obvious features seem to work.
UPDATE: or you can just use the latest CVS snapshot, it's updated for integrated CEDET.
Many people have complained about problems with the CEDET shipped with Emacs 23.2, so I recommend you to try using the standalone CEDET distribution and see if you have the problem with it as well.