2

After opening up an empty file named

~/work/aback

using emacsclient -nw ... .

I type in

~/huTAB

in the body of the file. how can I get autocompletion candidates shown? In this case, any files/folders starting with the name hu

2 Answers 2

1

M-x hippie-expand

Try to expand text before point, using multiple methods. The expansion functions in hippie-expand-try-functions-list are tried in order, until a possible expansion is found. Repeated application of hippie-expand inserts successively possible expansions.

Also see Emacs manual

0

Interesting... I use find-file-at-point (ffap.el) which is offering me completion. In scratch buffer (having ran emacs -q):

(require 'ffap)
(ffap-bindings)
~/.prof

With the cursor after .prof C-x C-f then asks if I want to load .profile, pressing tab I can then choose other files. Using Copy C-x h M-w I can then paste that into the file. Possibly not the solution you're looking for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.