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
Related
I'm new to emacs and trying to install the smartparens package from MELPA.
I have the package installed (I'm pretty sure)
The next step in the docs is to run (require 'smartparens-config). I put this in my ~/.emacs, but it doesn't seem to work. I also tried M-x require 'smartparens-config, but it says there is [No match] for require.
Not sure how to proceed here
You should include (package-initialize) in your init file, before you're calling (require 'smartparens-config)
I am trying to learn common lisp and following the installation process from https://lisp-lang.org/learn/getting-started/
The website says to add something to my ~/.emacs file, but I do not find it. Does someone now where I can find that?
enter image description here
Seems like you want to install a custom slime to use Common Lisp on Linux. Maybe one should install it from a given distribution, it would be easier.
I would suggest the following steps:
1. Setup Emacs to use MELPA repository:
M-x customize-variable
Customize Variable: package-archives
Then, simply add melpa with the URL https://melpa.org/packages
Then press the button Apply and Save.
2. Install slime from the package manager
M-x list-packages
Search for slime, press i for install and then press x to proceed. You should have a proper version of slime installed.
3. Happily hack Common Lisp!
EDIT:
I missed this installation method that you probably followed. In this case, I believe that the init directory has a typo and is missing a dot (.)
(load (expand-file-name "~/.quicklisp/slime-helper.el"))
^
\---- HERE
(setq inferior-lisp-program "sbcl")
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 am new to emacs and am looking for an emacs package that supports multiple cursors a'la sublime. I have tried to install magnars/multiple-cursors but without success. I can't even install the package directly. The following code does not work for me .
M-x package-install multiple-cursors
(emacs says no match, but in the ~/.emacs.d/elpa/archives/marmalade/archive-contents file, I can find references to that package.)
I have the required repositories in init.el and also run M-x package-refresh-contents
(setq package-archives
'(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
I then installed the package via a package that requires it (in my case I installed clj-refactor, this brings in the dependency to multiple-cursors. When I eval (require 'multiple-cursors) I get the following error
File error: Cannot open load file, no such file or directory, multiple-cursors
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.
This is strange because in the folder ~/.emacs.d/elpa/multiple-cursors-20141026.503 contains the file multiple-cursors.el
I got very used to that sublime feature and would really appreciate to use multiple cursors in emacs. Has anyone has a similar problem with the mentioned package or knows how to solve it? A link to a similar package would also be appreciated.
Thank you
Edit:
I Use emacs for mac v24.3.1
Edit:
I have just noticed that I don't need to eval (require 'multiple-cursors). The package is indeed installed (via the dependency) and I use it, great! The question remains why I can't directly install it.
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