理系学生日記

おまえはいつまで学生気分なのか

helm-find-files でタブ補完を効かせる

前から helm のミニバッファ上で Tab 補完が利かないのが何とかならんもんかと思ってた。

Emacs での補完の考え方と helm の補完の考え方は別にあって、helm を使う場合はミニバッファ上で補完をさせるのは邪道みたいなかんじになってる。

Emacs' default minibuffer completion is subtly different to Helm, and many (1, 2, 3) new comers struggle with the difference.

(snip)

In Helm, you don't pay attention to the minibuffer. Instead, you look at the completion window and the currently highlighted item. Emacs Completion vs Helm

でもそんなのは知るか!!!!!!!!! ワシは helm-find-files で出てくるミニバッファで Tab を押しまくって深い階層のファイルを開きたいんじゃ!!!!! ということなので、なんかググったら一行書けば問題なかった。

(define-key helm-find-files-map (kbd "TAB") 'helm-execute-persistent-action)

快適度増した。