2014-01-09 6 views

答えて

2

は、私は、この目的のために使用してんだよ:

(global-set-key (kbd "M-i") 'complete-with-helm) 
(require 'ac-helm) 
(require 'auto-complete-config) 
(ac-config-default) 
(defun ac-complete-with-helm-auto() 
    "Select `auto-complete' candidates by `helm'. 
It is useful to narrow candidates." 
    (interactive) 
    (let ((c (ac-candidates))) 
    (if (= (length c) 1) 
     (ac-expand) 
     (when ac-completing 
     (with-helm-show-completion ac-point ac-last-point 
      (helm :sources 'helm-source-auto-complete-candidates 
       :buffer "*helm auto-complete*")))))) 
(defun complete-with-helm() 
    (interactive) 
    (ignore-errors 
    (call-interactively 'auto-complete) 
    (call-interactively 'ac-complete-with-helm-auto))) 

必要なパッケージはauto-completehelm、およびac-helmです。 これらはすべてパッケージマネージャーから入手できます。

+0

これは非常に複雑で仕様を超えています。しかし、役に立つと思われます。私はそれを使用します。ありがとう。 –

1

私は昔から同様の質問に対して次のような回答を書いています。選択のためにidoインターフェースを使用しますが、別の選択インターフェースに適応するのは簡単です。

How to configure emacs to have it complete the path automatically like vim?

+0

それは私が望んだようです。私はhippie-exp.elにいくつかのハッキングが必要です。それは私のために非常に難しいです。とりあえずありがとう。 –

2

使用会社モード。すべてのUIの問題は企業モードで既に解決済みです

関連する問題