;; yasnippet
(add-to-list 'load-path
"~/.emacs.d/plugins/yasnippet")
(require 'yasnippet)
(setq yas/snippet-dirs '("~/.emacs.d/plugins/yasnippet/snippets""~/.emacs.d/plu\
gins/yasnippet/extras/imported"))
(setq yas/prompt-functions
'(yas/dropdown-prompt yas/x-prompt yas/completing-prompt yas/ido-prompt y\
as/no-prompt))
(yas-global-mode 1)
(yas-minor-mode-on)
error is below:
Debugger entered--Lisp error: (wrong-number-of-arguments called-interactively-p 1)
(called-interactively-p (quote interactive))
(yas--called-interactively-p (quote interactive))
(if (yas--called-interactively-p (quote interactive)) (progn (yas--message 3 "Loaded snippets from %s." top-level-dir)))
(when (yas--called-interactively-p (quote interactive)) (yas--message 3 "Loaded snippets from %s." top-level-dir))
yas-load-directory("~/.emacs.d/plugins/yasnippet/extras/imported" t)
(cond ((file-directory-p directory) (yas-load-directory directory ...) (if nojit ... ...)) (t (push ... errors)))
(while --cl-dolist-temp-- (setq directory (car --cl-dolist-temp--)) (cond (... ... ...) (t ...)) (setq --cl-dolist-temp-- (cdr --cl-dolist-temp--)))
(let ((--cl-dolist-temp-- ...) directory) (while --cl-dolist-temp-- (setq directory ...) (cond ... ...) (setq --cl-dolist-temp-- ...)) nil)
(catch (quote --cl-block-nil--) (let (... directory) (while --cl-dolist-temp-- ... ... ...) nil))
(cl-block-wrapper (catch (quote --cl-block-nil--) (let ... ... nil)))
(block nil (let (... directory) (while --cl-dolist-temp-- ... ... ...) nil))
(dolist (directory (reverse ...)) (cond (... ... ...) (t ...)))
(if yas-snippet-dirs (dolist (directory ...) (cond ... ...)) (call-interactively (quote yas-load-directory)))
(let (errors) (if yas-snippet-dirs (dolist ... ...) (call-interactively ...)) errors)
yas--load-snippet-dirs(nil)
(setq errors (yas--load-snippet-dirs interactive))
(let ((errors) (snippet-editing-buffers ...)) (when snippet-editing-buffers (if interactive ... ...)) (setq yas--tables (make-hash-table)) (setq yas--parents (make-hash-table)) ($
(catch (quote abort) (let (... ...) (when snippet-editing-buffers ...) (setq yas--tables ...) (setq yas--parents ...) (setq yas--menu-table ...) (setq yas--scheduled-jit-loads ..$
yas-reload-all()
(progn (yas-reload-all))
(if yas-global-mode (progn (yas-reload-all)))
(when yas-global-mode (yas-reload-all))
yas--global-mode-reload-with-jit-maybe()
run-hooks(yas-global-mode-hook yas-global-mode-on-hook)
yas--global-mode-reload-with-jit-maybe()
run-hooks(yas-global-mode-hook yas-global-mode-on-hook)
yas-global-mode(1)
eval-buffer(#<buffer *load*> nil "/Users/qzi/.emacs" nil t) ; Reading at buffer position 821
load-with-code-conversion("/Users/qzi/.emacs" "/Users/qzi/.emacs" t t)
load("~/.emacs" t t)
#[nil "^H\205\276^ <at> \306=\203^Q^ <at> \307^H\310Q\202A^ <at> \311=\2033^ <at> \312\307\313\314#\203#^ <at> \315\202A^ <at> \312\307\313\316#\203/^ <at> \317\202A^ <at> \315\202A^ <at> \320=\203=^ <at> \321\202A^ <at> \307^$
command-line()
normal-top-level()
--
You received this message because you are subscribed to the Google Groups "smart-snippet and YASnippet" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/smart-snippet/-/XsS3PqdVUh0J.
To post to this group, send email to smart-snippet-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to smart-snippet+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/smart-snippet?hl=en.