Skip to content

Instantly share code, notes, and snippets.

@buzztaiki
Created March 17, 2012 01:11
Show Gist options
  • Select an option

  • Save buzztaiki/2054085 to your computer and use it in GitHub Desktop.

Select an option

Save buzztaiki/2054085 to your computer and use it in GitHub Desktop.
auto-complete source sample with summary
(defun ac-with-summary-candidates ()
(loop for (value summary) in '(("hoge" "ほげ")
("fuga" "ふが")
("hage" "禿"))
collect (popup-item-propertize value 'summary summary)))
(ac-define-source with-summary
'((candidates . ac-with-summary-candidates)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment