Created
January 21, 2015 07:47
-
-
Save ShingoFukuyama/ab6b6388e1fdc38e1a55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(when (executable-find "cmigemo") | |
(when (require 'migemo nil t) | |
(setq migemo-command "cmigemo") | |
(setq migemo-options '("-q" "--emacs")) | |
(setq migemo-dictionary "/usr/local/share/migemo/utf-8/migemo-dict") | |
(setq migemo-user-dictionary nil) | |
(setq migemo-regex-dictionary nil) | |
(setq migemo-coding-system 'utf-8) | |
(load-library "migemo") | |
(migemo-init))) | |
(setq helm-use-migemo t) | |
(when (require 'helm-migemo nil t) | |
(defun helm-compile-source--candidates-in-buffer (source) | |
(helm-aif (assoc 'candidates-in-buffer source) | |
(append source | |
`((candidates . ,(or (cdr it) | |
(lambda () | |
(helm-candidates-in-buffer | |
(helm-get-current-source))))) | |
(volatile) (match identity))) | |
source))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment