I have no idea how to install autocomplete in emacs24.4, I follow the auto-complete (http://auto-complete.org/) office document,install by load file "install.el", it just fail "Cannot open load file: no such file or directory,popup", by the way ,I download the auto-complete from github. how can I get any information for the auto-complete mode????
The easiest way to install auto-complete in emacs-24.4 is using the package module already integrated in emacs that allows to install packages.
(setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
(package-initialize)
Copy and paste the above lines in your emacs startup file (.emacs or init.el)
Save and restart emacs.
Call the following command by typing M-x: list-packages
Search (C-s) for auto-complete
Press enter on auto-complete package and install it by pressing again on the install button
Restart emacs. You can enable auto-complete by typing M-x: auto-c-omplete-mode
If you do not want to install by hand the package, add the following lines in your emacs startup file:
(if (package-installed-p 'auto-complete)
nil
(package-install 'auto-complete))
Now you can continue configuring auto-complete by requiring it. You do not need to put auto-complete any more in your load-path.
Related
I'm trying to install org-checklist for spacemacs but I'm having some difficulties. On the project documentation (https://orgmode.org/worg/org-contrib/org-checklist.html) it says enable the org contrib directory but when I run M-x find-library RET org-contribdir it says the contrib directory is deprecated. When I try installing org-plus-contrib with package-list-packages, nothing happens.
How to untick checkboxes in org-mode for the next cyclic/repetitive task - This stack overflow question says I should download the org-checklist.el file but I can't find it anywhere. If anyone knows how to set up org-checklist or a viable alternative, I'd be really grateful
org-checklist.el is part of org-plus-contrib. You should be able to install it with package-manager: it is available from orgmode.org, so you have to add (add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t) to your list of archives.
Starting from emacs -q I was able to install it after evaluating these lines:
(require 'package)
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
in the *scratch* buffer. Invoking package-list-packages showed org-plus-conrib as an available package and ix installed it (after I confirmed that I wanted to install it).
I was then able to load org-checklist with M-x load-library RET org-checklist RET.
Alternatively, you can just download the file from here and save it in some place that is found in your emacs's load-path, then say (require 'org-checklist).
Hope this helps.
I just installed the emacs package dired-details from inside emacs via
M-x package-list-packages
clicked on the package name and then install in the newly opened buffer.
Then I put those lines into my .emacs:
(require 'dired-details)
(setq-default dired-details-hidden-string ">---< ")
(dired-details-install)
When I restart emacs, I get the following error:
File error: Cannot open load file, dired-details
The interesting thing is, that when I mark the code region above and apply
M-x eval-region
everything works as expected.
emacs --version
>> GNU Emacs 24.3.1
package version:
dired-details-20130328.1119
Packages you installed with package.el need to be initialized if you want to access them during emacs initialization.
Add the line
(package-initialize)
to the very beginning of your .emacs .
Also follow phil's recommendation and see the variable
package-enable-at-startup
I just git cloned auto-complete from GitHub. When I typed
make
I got:
emacs -Q -L . -batch -f batch-byte-compile auto-complete.el auto-complete-config.el
In toplevel form:
auto-complete.el:49:1:Error: Cannot open load file: popup
In toplevel form:
auto-complete-config.el:31:1:Error: Cannot open load file: popup
make: *** [byte-compile] Error 1
I didn't see anything in the auto-complete documentation that says that I have to install popup. I don't remember running into this problem before. Is this a new dependency? Is popup a package that is required by auto-complete?
If you use Emacs 24 (which you probably should by now) you can use the command M-x package-install and install auto-complete through there. This will install it correctly and is the best method of installing packages.
popup.el should have been included with your copy of auto-complete though, if not check here https://github.com/auto-complete/popup-el to get the appropriate copy.
To enable packages you can add something like this to your .emacs:
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
(setq url-http-attempt-keepalives nil)
The last line is simply to keep the downloads of large packages from timing out sometimes.
Had the same problem than you did, find you post struglgle a little before to find why it wasn't working: I had forgot to initate the submodules... reason why Make wasn't finding popup and crashing
so to solve it, go in your autocomplete repo and run
git submodule update --init
this will build the three lib you need to compile autocomplete
Just out of curiosity, I wanted to try emacs + evil. Here's what I've done so far:
Installed emacs 24 on Windows 7 -- went well
Created an .emacs file in C:\Users\name\AppData\Roaming\ (where .emacs.d ended up)
Added the following to that .emacs file
(setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")))
started emacs then M-x package-list-packages
selected evil, evil-leader, evil-numbers with i then x to install
restarted emacs
Evil shows as installed in package-list-packages and the evil files are present in .emacs.d\elpa, but evil doesn't seem to be loaded when I start emacs (No <N> in the status bar).
JUST starting with emacs. Not managing to get much out of it except for a lot of beeps. Want to start simple and use it for a few days before possibly moving forward with further extensions.
You should add following s-expressions to your .emacs.
(package-initialize)
(evil-mode 1) ;; enable evil-mode
I see at this link how emacs prelude ensures that a set of packages is installed when emacs starts. I was wondering if I could somehow extend the variable prelude-packages to add some other packages, without changing the prelude-packages.el file?
Barring that I was wondering how I could define a list of packages that are installed at start-up if they aren't currently installed.
You can place a .el file in personal/ directory in Prelude. Prelude loads any .el file it finds there in an alphabetical order. Below is the content of my personal/00-packages.el file.:
(require 'package)
(add-to-list 'package-archives
'("marmalade" .
"http://marmalade-repo.org/packages/"))
(package-initialize)
;; My packages
(setq prelude-packages (append '(
drupal-mode
nginx-mode
) prelude-packages))
;; Install my packages
(prelude-install-packages)
"00" is added to the file name to ensure that the file is loaded before all personal customizations. Add any new package you need to the list being appended to prelude-packages.
Also, if you want to use any mode that is not available in MELPA or Marmalade, you can simply drop the mode's file in personal folder and Prelude will pick it up while loading. If there are any customizations to that mode, simply create another .el file and add the Emacs Lisp code there.
Prelude recommends to use
(prelude-require-packages '(some-package some-other-package))
if you have several package. Or in case you want to add just one package:
(prelude-require-package 'some-package)
If you want you can still maintain your package list in a variable:
(setq my-packages '(drupal-mode nginx-mode toto-mode)
(prelude-require-package my-packages)
In your .emacs file you could add code like this (very similar to the code in the link you sent) to check if each package is installed and install it if is not:
(dolist (package '(eredis anything erlang elnode))
(unless (package-installed-p package)
(package-install package)))
In answer to your question there's no reason you can't do this after the prelude code has run.