|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
hippie-expand is a single function for a lot of different kinds of
completions and expansions. Called repeatedly it tries all possible
completions in succession. Which kinds of completions to try, and in which
order, is determined by the contents of
hippie-expand-try-functions-list. Much customization of
hippie-expand can be made by changing the order of, removing, or
inserting new functions in this list. Given a positive numeric argument,
hippie-expand jumps directly ARG functions forward in this list.
Given some other argument (a negative argument or just C-u) it undoes
the tried completion.
If the variable
hippie-expand-verbose is non-nil,
outputs in a message which try-function in the list that is used
currently (ie. was used currently and will be tried first the next time).
hippie-expand-max-buffers determines in how many buffers,
apart from the current, to search for expansions in. It is used by the
try-functions named "-all-buffers". The variable
hippie-expand-ignore-buffers is a list of regexps matching buffer
names (as strings) or major modes (as atoms) of buffers that should not be
searched by the try-functions named "-all-buffers". See also the macro
A short description of the current try-functions in this file:
try-complete-file-namefor those who want first to get a file name completed only as many characters as is unique.
try-expand-linebut searches in all buffers (except the current). (This may be a little slow, don't use it unless you are really fond of
try-expand-listbut searches in all buffers (except the current).
dabbrev-expand(but of course in a way compatible with the other try-functions).
dabbrev-expandbut searches all Emacs buffers (except the current) for matching words. (No, I don't find this one particularly slow.)
try-expand-dabbrev-all-buffersto first try the expansions you can see.
lisp-complete-symbol, but goes through all possibilities instead of completing what is unique. Might be tedious (usually a lot of possible completions) and since its function is much like
lisp-complete-symbol, which already has a key of its own, you might want to remove this.
try-complete-lisp-symbolfor those who first want to get completion of what is unique in the name.
Not all of the above functions are by default in
hippie-expand-try-functions-list. This variable is better set in your
initialization file to make
hippie-expand behave maximally convenient
according to personal taste. Also, instead of loading the variable with all
kinds of try-functions above, it might be an idea to use
make-hippie-expand-function to construct different
hippie-expand-like functions, with different try-lists and bound to
different keys. It is also possible to make
hippie-expand-try-functions-list a buffer local variable, and let it
depend on the mode (by setting it in the mode-hooks).
|[ << ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|