Skip to content

Instantly share code, notes, and snippets.

@yryozo
Created June 23, 2013 05:11
Show Gist options
  • Save yryozo/5843877 to your computer and use it in GitHub Desktop.
Save yryozo/5843877 to your computer and use it in GitHub Desktop.
yc.el(Yet another canna client) での入力時に auto-complete と連携させるための設定
;; An advice for automatically starting auto-complete.el from yc.el(Yet another canna client).
;;
;; Note: This advice would be more useful when used with ac-ja.el.
;; <https://github.com/myuhe/ac-ja.el>
;;
;; Note: This code originated from the below web page.
;; <http://sheephead.homelinux.org/2011/10/11/6869/>
(eval-after-load "yc"
'(progn
(defadvice yc-kakutei (after ac-yc-kakutei last)
"yc-kakuteiの後にauto-complete-modeによる補完を実行するadvice"
(unless (minibufferp)
(ac-start)))
(ad-activate 'yc-kakutei)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment