* how to get the exhaustive list of auto completions while editing in .c or .cpp file.
@ 2008-11-20 3:55 Anand S. Dhankshirur
0 siblings, 0 replies; 2+ messages in thread
From: Anand S. Dhankshirur @ 2008-11-20 3:55 UTC (permalink / raw
To: help-gnu-emacs
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.?
^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <mailman.811.1227163931.26697.help-gnu-emacs@gnu.org>]
* Re: how to get the exhaustive list of auto completions while editing in .c or .cpp file.
[not found] <mailman.811.1227163931.26697.help-gnu-emacs@gnu.org>
@ 2008-11-20 10:47 ` Nordlöw
0 siblings, 0 replies; 2+ messages in thread
From: Nordlöw @ 2008-11-20 10:47 UTC (permalink / raw
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-20 10:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-20 3:55 how to get the exhaustive list of auto completions while editing in .c or .cpp file Anand S. Dhankshirur
[not found] <mailman.811.1227163931.26697.help-gnu-emacs@gnu.org>
2008-11-20 10:47 ` Nordlöw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).