              ("x" . yankpad-expand)))
 
 (provide 'init-snippet)
-;;; init-yasnippet ends here
+;;; init-snippet ends here


(setq yas-prompt-functions '(yas-popup-isearch-prompt yas-ido-prompt yas-no-prompt))

(use-package yankpad
  :init
  (setq yankpad-file "~/.emacs.d/org/yankpad.org")

(define-key popup-menu-keymap (kbd "M-p") 'popup-previous)

(defun yas-popup-isearch-prompt (prompt choices &optional display-fn)
  "Used for snippet popup.  PROMPT,  CHOICES,  DISPLAY-FN."
  (when (featurep 'popup)
    (popup-menu*
     (mapcar
