overtone / emacs-live

M-x start-hacking
http://overtone.github.com/emacs-live/
Other
1.52k stars 241 forks source link

possible problem with yasnippet #87

Open gudesh opened 11 years ago

gudesh commented 11 years ago

I saw your inspiring presentation on infoq.com and wanted to try out your special setup.

I had a problem initializing emacs (version: GNU Emacs 24.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.12) ): "Symbol's function definition is void: yas-global-mode"

I solved it (apparently) with (yas/global-mode 1) instead of (yas-global-mode 1) at various places...

I thought it might interest you...

samaaron commented 11 years ago

Interesting. Which specific places did you make those changes?

However, I don't see yas/global-mode as a fn in yasnippet.el...

gudesh commented 11 years ago

Hi Sam,

Here are the changed files under .emacs.d :

~/.emacs.d $ more ./packs/dev/power-pack/config/yasnippet-conf.el

(live-add-pack-lib "yasnippet") (require 'yasnippet) (setq live-yasnippet-dir (concat live-etc-dir "snippets")) (setq yas-snippet-dirs `(,live-yasnippet-dir)) (yas/global-mode 1)

(defun live-reload-snippets () (interactive) (yas-load-directory live-yasnippet-dir))

~/.emacs.d $ more ./packs/live/power-pack/config/yasnippet-conf.el

(live-add-pack-lib "yasnippet") (require 'yasnippet) (setq live-yasnippet-dir (concat live-etc-dir "snippets")) (setq yas-snippet-dirs `(,live-yasnippet-dir)) (yas/global-mode 1)

(defun live-reload-snippets () (interactive) (yas-load-directory live-yasnippet-dir))

samaaron commented 11 years ago

Is this still an issue? The fn yas/global-mode was deprecated in favour of yas-global-mode a while back. I've update yasnippet in the latest dev packs - perhaps you could try it out?