[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to get the exhaustive list of auto completions while editing in
From: |
Nordlöw |
Subject: |
Re: how to get the exhaustive list of auto completions while editing in .c or .cpp file. |
Date: |
Thu, 20 Nov 2008 02:47:09 -0800 (PST) |
User-agent: |
G2/1.0 |
On 20 Nov, 04:55, "Anand S. Dhankshirur" <a...@cdotb.ernet.in> wrote:
> I have one more question
> GVIM, provides the auto completions with the exhaustive list of all the
> possibilities.
> while typing in .c file
> (for example GS_AM_ will give all the auto completions for all the
> tokens strating with GS_AM.)
> In emacs also M-/ gives the completions which are there in current buffer.
> Furhter it gives the case insensitive one.(the cases are ignored).
> But it will not give the completions from the TAGS file
> It does not consider other files and buffers.
> Is there any way to do it in emacs.?
Add the following to .emacs
(provide 'hippie-exp)
And the customize the variable hippie-expand-try-functions-list like
for example
(setq hippie-expand-try-functions-list
'(try-expand-dabbrev-visible ;from visible parts of all windows
try-expand-dabbrev ;from current buffer
try-expand-dabbrev-all-buffers ;from all other buffers
try-expand-tag ;Note: Expand from "TAGS"
table.
)
Then finally do
M-x hippie-expand
/Nordlöw
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: how to get the exhaustive list of auto completions while editing in .c or .cpp file.,
Nordlöw <=