[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2. Completion functions

The file `light.el' defines several functions that do lightning completion:

(These functions all call the function completing-insert, which I'm too lazy to document. The casual user won't want to call it directly, anyway, and the more serious user can figure it out for herself.)

For example, if I'm typing an info page for lightning completion, and I want to insert the string `completing-insert-kill', I run completing-insert-lisp-function, and then use lightning completion to produce the function name, avoiding typing the whole thing in (and also avoiding typos). In detail: once I start completing-insert-lisp-function, the following happens:

There are user customizable variables (in the customization group "lightning-completion") related to these functions. If the variable lc-ctrl-x-c-is-completion is non-nil, then C-x c is the prefix key for these commands. This is one of the few global key bindings available, probably because it is too close to C-x C-c. So be warned, if you use these key bindings, you may occasionally hit C-x C-c instead of C-x c. Anyway, enabling this options provides the following key bindings:

C-x c F
runs completing-insert-file-name.

C-x c b
runs completing-insert-buffer-name.

C-x c o
runs completing-insert-lisp-object.

C-x c f
runs completing-insert-lisp-function.

C-x c v
runs completing-insert-lisp-variable.

C-x c k
runs completing-insert-kill.

C-x c y
runs completing-insert-buffer-contents.

C-x c u
runs completing-insert-according-to-mode.

Note that if one plans on using lightning completion only occasionally, and always from the minibuffer, one might be able to get away with only using the function completing-insert-according-to-mode. There is a customizable variable lc-ctrl-backslash-completes-a-la-mode. If it is non-nil, then C-\ runs completing-insert-according-to-mode.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated on September, 30 2005 using texi2html