ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Originally posted by phoenix7 and how can one use them?
M-/ to have emacs complete the currect word (identifier)
There's also more thorough version of this: M-x hippie-expand. From the info-page:
`M-x hippie-expand' is a single command providing a variety of
completions and expansions. Called repeatedly, it tries all possible
completions in succession.
Typically you would bind `hippie-expand' to `M-/' with
`dabbrev-expand', the standard binding of `M-/', providing one of the
When using source code tags (man etags), you can complete from the tags-table with C-x t.
It also posible to define your own abbreviations, and complete code from them. From emacs help (C-h):
add-global-abbrev C-x a g : Command: Define global (all modes) abbrev for last word(s) before point.
add-mode-abbrev C-x a l, C-x a C-a, C-x a + : Command: Define mode-specific abbrev for last word(s) before point.
dabbrev-completion C-M-/ : Command: Completion on current word.