Next: C Mode Up: Modes Previous: Formatting paragraphs Contents

## Smart Quotes

You have probably noticed that many key words in this document are quoted in double quotes like ``this is double quoted'' and `this is single quoted'. By default, the double quote key (") and single quote key (') are bound to the function `text_smart_quote`. With this binding and in wrap mode, the single quote key inserts a single quote with the ``proper'' orientation and the double quote key inserts two single quotes of the ``proper'' direction. To turn this off, rebind the keys to `self_insert_cmd`. Some modes already do this (e.g., EDT).

This brings up the question: if the double quote key is bound to `text_smart_quote` then how does one insert the character (")? The most common way is to use the `quoted_insert` function which, by default, is bound to the single backquote (`) key. This is the same mechanism that is used to insert control characters. The other method is to use the fact that if the preceding character is a backslash, `\`, the character simply self inserts. Again, this is ideal for writing TEX documents.

Next: C Mode Up: Modes Previous: Formatting paragraphs Contents