summaryrefslogtreecommitdiff
path: root/doc/emacs/basic.texi
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-05-28 00:46:59 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2015-05-28 00:54:06 -0700
commit73512b8cff21a5d92ca72b6cfa34a9210d5a5441 (patch)
treeca007c5cb2d83a984d2991b62a81c908e25596df /doc/emacs/basic.texi
parent4643f6c21a88d27cfb8a3410494bfd7909a98462 (diff)
downloademacs-73512b8cff21a5d92ca72b6cfa34a9210d5a5441.tar.gz
New minor mode Electric Quote
This lets you easily insert quotes ‘like this’ by typing quotes `like this', and similarly you can easily insert quotes “like this” by typing quotes ``like this'' (Bug#20545). * doc/emacs/basic.texi (Inserting Text): * doc/emacs/modes.texi (Minor Modes): * etc/NEWS: Document it. * doc/emacs/text.texi (Quotation Marks): New section. * lisp/electric.el (electric-quote-comment) (electric-quote-string, electric-quote-paragraph): New custom vars. (electric--insertable-p) (electric-quote-post-self-insert-function): New functions. (electric-quote-mode, electric-quote-local-mode): New minor modes. * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Add curved single quotes to electric-pair-text-pairs. Set electric-quote-string in this buffer.
Diffstat (limited to 'doc/emacs/basic.texi')
-rw-r--r--doc/emacs/basic.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/emacs/basic.texi b/doc/emacs/basic.texi
index be45856a6dd..cc9602e8c52 100644
--- a/doc/emacs/basic.texi
+++ b/doc/emacs/basic.texi
@@ -127,6 +127,12 @@ sign (Unicode code-point @code{U+221E}):
A numeric argument to @kbd{C-q} or @kbd{C-x 8 @key{RET}} specifies
how many copies of the character to insert (@pxref{Arguments}).
+ In some contexts, if you type a quotation using grave accent and
+apostrophe @t{`like this'}, it is converted to a form @t{‘like this’}
+using single quotation marks. Similarly, typing a quotation @t{``like
+this''} using double grave accent and apostrophe converts it to a form
+@t{“like this”} using double quotation marks. @xref{Quotation Marks}.
+
@node Moving Point
@section Changing the Location of Point