diff options
| author | Miles Bader | 2008-06-04 05:38:04 +0000 |
|---|---|---|
| committer | Miles Bader | 2008-06-04 05:38:04 +0000 |
| commit | 56c73dec5cf9f392a3ddfa6472f8eb61ff1cbaf9 (patch) | |
| tree | 7a1b43cf57f200ee7ea98e68a123cd23f91c4ae4 /doc | |
| parent | 2a1e0c92c318a2c0ba436b4435cd0fe2f7f75261 (diff) | |
| download | emacs-56c73dec5cf9f392a3ddfa6472f8eb61ff1cbaf9.tar.gz emacs-56c73dec5cf9f392a3ddfa6472f8eb61ff1cbaf9.zip | |
Add adjust-buffer-face-height command
... and move face-height adjustment bindings into ctl-x-map using it.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1203
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/ChangeLog | 7 | ||||
| -rw-r--r-- | doc/emacs/display.texi | 46 |
2 files changed, 42 insertions, 11 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 314c42d4dff..41c3e3225bf 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2008-06-04 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * display.texi (Temporary Face Changes): Add | ||
| 4 | `adjust-buffer-face-height'. Rewrite description of | ||
| 5 | `increase-buffer-face-height' and `decrease-default-face-height' now | ||
| 6 | that they aren't bound by default. | ||
| 7 | |||
| 1 | 2008-06-03 Miles Bader <miles@gnu.org> | 8 | 2008-06-03 Miles Bader <miles@gnu.org> |
| 2 | 9 | ||
| 3 | * display.texi (Temporary Face Changes): New node. | 10 | * display.texi (Temporary Face Changes): New node. |
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi index 9cf8c986d4a..47650ec5601 100644 --- a/doc/emacs/display.texi +++ b/doc/emacs/display.texi | |||
| @@ -1178,24 +1178,48 @@ fringe when positioned on that newline. | |||
| 1178 | These are commands which temporarily change the default face used to | 1178 | These are commands which temporarily change the default face used to |
| 1179 | display text in a buffer. | 1179 | display text in a buffer. |
| 1180 | 1180 | ||
| 1181 | @cindex adjust buffer face height | ||
| 1182 | @findex adjust-buffer-face-height | ||
| 1183 | @kindex C-x C-+ | ||
| 1184 | @kindex C-x C-- | ||
| 1185 | @kindex C-x C-= | ||
| 1186 | @kindex C-x C-0 | ||
| 1187 | To increase the height of the default face in the current buffer one | ||
| 1188 | step, type @kbd{C-x C-+} or @kbd{C-x C-=}. To decrease it one step, | ||
| 1189 | type @kbd{C-x C--}. To restore the default (global) face height, type | ||
| 1190 | @kbd{C-x C-0}. These keys are all bound to the same command, | ||
| 1191 | @code{adjust-buffer-face-height}, which looks at the last key typed to | ||
| 1192 | determine the adjustment to make. | ||
| 1193 | |||
| 1194 | The final key of these commands may be repeated without the leading | ||
| 1195 | @kbd{C-x} -- for instance, @kbd{C-x C-= C-= C-=} increases the face | ||
| 1196 | height by three steps. | ||
| 1197 | |||
| 1198 | Each step scales the height of the default face by the value of the | ||
| 1199 | variable @code{text-scale-mode-step} (a negative number of steps | ||
| 1200 | decreases the height by the same amount). As a special case, an | ||
| 1201 | argument of 0 will remove any scaling currently active. | ||
| 1202 | |||
| 1203 | This command is a special-purpose wrapper around the | ||
| 1204 | @code{increase-buffer-face-height} command which makes repetition | ||
| 1205 | convenient even when it is bound in a non-top-level keymap. For | ||
| 1206 | binding in a top-level keymap, @code{increase-buffer-face-height} or | ||
| 1207 | @code{decrease-default-face-height} may be more appropriate." | ||
| 1208 | |||
| 1181 | @cindex increase buffer face height | 1209 | @cindex increase buffer face height |
| 1182 | @findex increase-buffer-face-height | 1210 | @findex increase-buffer-face-height |
| 1183 | @cindex decrease buffer face height | 1211 | @cindex decrease buffer face height |
| 1184 | @findex decrease-buffer-face-height | 1212 | @findex decrease-buffer-face-height |
| 1185 | @findex text-scale-mode | 1213 | The @code{increase-buffer-face-height} and |
| 1186 | To increase the size of the font used to display text in the current | 1214 | @code{decrease-buffer-face-height} commands increase or decrease the |
| 1187 | buffer, type @kbd{C-=} or @kbd{C-+} | 1215 | height of the default face in the current buffer by one step. With a |
| 1188 | (@code{increase-buffer-face-height}). With a numeric prefix argument, | 1216 | numeric prefix argument, the size will be increased/decreased by that |
| 1189 | the size will be increased by that many steps (the default is 1 step); | 1217 | many steps; each step scales the font height by the value of the |
| 1190 | each step scales the font height by the value of the variable | 1218 | variable @code{text-scale-mode-step}. If repeated, this command has a |
| 1191 | @code{text-scale-mode-step}. If repeated, this command has a | ||
| 1192 | cumulative effect. As a special case, a prefix argument of 0 will | 1219 | cumulative effect. As a special case, a prefix argument of 0 will |
| 1193 | remove any scaling currently active. | 1220 | remove any scaling currently active. |
| 1194 | 1221 | ||
| 1195 | To decrease the size of the text, type @kbd{C--} | 1222 | @findex text-scale-mode |
| 1196 | (@code{decrease-buffer-face-height}). The behavior is similar to that | ||
| 1197 | of @code{increase-buffer-face-height}, but in reverse. | ||
| 1198 | |||
| 1199 | These commands automatically enable or disable the | 1223 | These commands automatically enable or disable the |
| 1200 | @code{text-scale-mode} minor-mode, depending on whether the current | 1224 | @code{text-scale-mode} minor-mode, depending on whether the current |
| 1201 | font scaling is other than 1 or not. | 1225 | font scaling is other than 1 or not. |