trying to install yasnippet for emacs 23 from https://github.com/joaotavora/yasnippet
Firstly I attempted the quick install but the yasnippet-bundle.el for the 'quick' install doesn't seem to be in the repository?
Secondly I attempted the full install.
When trying to do the full install I get the following error:
[yas] Check your `yas/snippet-dirs': ~/.emacs.d/snippets is not a directory
I have downloaded the latest bundle joaotavora-yasnippet-e53c41d/ and unpacked in into .emacs.d/plugins/
the addition to my `.emacs' is:
(add-to-list 'load-path
"~/.emacs.d/plugins/joaotavora-yasnippet-e53c41d")
(require 'yasnippet) ;; not yasnippet-bundle
(yas/initialize)
(yas/load-directory "~/.emacs.d/plugins/joaotavora-yasnippet-e53c41d/snippets")
Basically, the install instructions seem to have become out of sync with the latest src. Does anyone know how to install it?
You need to initialize yas/root-directory. Here is how I setup yasnippet
(require 'yasnippet "~/emacs/addons/yasnippet.el")
(yas/initialize)
(setq yas/root-directory "~/emacs/snippets")
(yas/load-directory yas/root-directory)
Related
Fresh install of Ubuntu 20.04
Added openjdk-11 and lein 2.9.3
$ sudo apt-add-repository ppa:kelleyk/emacs
Installed
GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14)
of 2020-03-26, modified by Debian
Tried the instructions on the cider Getting Started page
M-x package-refresh-contents
M-x package install <RET>
cider <RET>
The cider package isn't found. Tried to package-list-packages - list doesn't contain cider.
What am I missing?
Finally did the steps from the following link to get it to work
Brave Clojure book companion repo
Not sure why the cider instructions don't mention this.
You need to create a ~/.emacs.d/init.el file with the following contents
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
Save and restart emacs.
M-x package-list-packages check the archive column shows packages from gnu as well as melpa archives.
Sometimes you would see an error Failed to download ‘gnu’ archive. - this one is a flaky one. A restart and/or M-x package-refresh-contents fixed it for me.
Now we have the sources configured correctly.
Install:
M-x package-install <RET> cider <RET>
M-x package-list-packages - Move to the end of the listing to see Status=installed packages.
Test: M-x cider-jack-in. Answer no to the prompt indicating you are not in a clojure project. Soon you should be dropped to a user> prompt - ready to REPL and roll.
You may also consider trying out popular existing "bundle setups' like Spacemacs and Prelude Both of which have all the tooling necessary for Clojure development built-in.
Instead of modifying .emacs or init file manually, you can just change the package-archives variable by typing the following:
M-x customize-variable package-archives
By default, you should only have a GNU source set. Go ahead and add Melpa's name and URL (https://melpa.org/packages/) too by clicking INS. Then apply the changes. Next, type the following commands into the terminal:
M-x package-refresh-contents [RET]
M-x package-install [RET] cider [RET]
You should be all set.
CIDER is available on the two major package.el community maintained repos - MELPA Stable and MELPA.
After adding the following in my ./emacs, i could install CIDER.
(setq package-archives
'(("Elpa" . "https://elpa.gnu.org/packages/")
("Melpa Stable" . "https://stable.melpa.org/packages/")
("Melpa" . "https://melpa.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/"))
package-archive-priorities
'(("MELPA Stable" . 10)
("GNU ELPA" . 5)
("MELPA" . 0)))
I am trying to install a package with emacs melpa package manager.
The github page says that the package multiple-cursors is available with melpa.
But when I try to install or list this package using M-x package-install multiple-cursors, the package is not found.
I am using emacs version 24.5.1 on windows. I have tried to add the following lines to my init.el file :
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
What's wrong ? How shall I proceed to install this package ?
I am trying to install autocomplete mode on OS X 10.8.4 using emacs 24 installed through brew.
I have cloned autocomplete through git git mirror here and I'm following the build instructions build instructions here. I am getting an error during make install telling me that define-package (presumably some elisp) is undefined.
➜ auto-complete git:(master) make install
emacs -Q -L . -batch -l etc/install
Install to: ~/.emacs.d/
Installing to ~/.emacs.d/ from /Users/f/src/auto-complete/
In toplevel form:
auto-complete-config.el:31:1:Error: Cannot open load file: popup
In end of data:
auto-complete-pkg.el:5:1:Warning: the function `define-package' is not known
to be defined.
Wrote /Users/f/src/auto-complete/auto-complete-pkg.elc
In toplevel form:
auto-complete.el:51:1:Error: Cannot open load file: popup
83117999910111511510211710810812132105110115116971081081011003310106510010032116104101321021111081081111191051101033299111100101321161113212111111711432461011099799115581010409710010045116111451081051151163239108111971004511297116104323412647461011099799115461004734411040114101113117105114101323997117116111459911110911210810111610145991111101021051034110409799459911111010210510345100101102971171081164110
Anybody encounter this before / have a fix?
Install using Melpa or Marmalade via package.el. Auto-complete expects to be installed this way, and you'll also get updates installed very easily.
If you don't have package.el configured already, add the following to .emacs or .emacs.d/init.el
(setq package-archives
'(
("marmalade" . "http://marmalade-repo.org/packages/")
("elpa" . "http://tromey.com/elpa/")
("melpa" . "http://melpa.milkbox.net/packages/")
("gnu" . "http://elpa.gnu.org/packages/")
))
(package-initialize) ;; init elpa packages
Just run M-x package-list-packages (or M-x p-l-p TAB) and install auto-complete from the package list, mark packages with i use x to run the installation of marked packages.
Periodically, opening M-x package-list-packages and pressing U will mark installed packages for updating, press x to run the updates.
This is assuming Emacs 24.
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.