1438 |
construct the key sequence string using @code{multibyte-char-to-unibyte} |
construct the key sequence string using @code{multibyte-char-to-unibyte} |
1439 |
or @code{string-make-unibyte} (@pxref{Converting Representations}). |
or @code{string-make-unibyte} (@pxref{Converting Representations}). |
1440 |
|
|
1441 |
@deffn Command global-set-key key definition |
@deffn Command global-set-key key binding |
1442 |
This function sets the binding of @var{key} in the current global map |
This function sets the binding of @var{key} in the current global map |
1443 |
to @var{definition}. |
to @var{binding}. |
1444 |
|
|
1445 |
@smallexample |
@smallexample |
1446 |
@group |
@group |
1447 |
(global-set-key @var{key} @var{definition}) |
(global-set-key @var{key} @var{binding}) |
1448 |
@equiv{} |
@equiv{} |
1449 |
(define-key (current-global-map) @var{key} @var{definition}) |
(define-key (current-global-map) @var{key} @var{binding}) |
1450 |
@end group |
@end group |
1451 |
@end smallexample |
@end smallexample |
1452 |
@end deffn |
@end deffn |
1482 |
@end smallexample |
@end smallexample |
1483 |
@end deffn |
@end deffn |
1484 |
|
|
1485 |
@deffn Command local-set-key key definition |
@deffn Command local-set-key key binding |
1486 |
This function sets the binding of @var{key} in the current local |
This function sets the binding of @var{key} in the current local |
1487 |
keymap to @var{definition}. |
keymap to @var{binding}. |
1488 |
|
|
1489 |
@smallexample |
@smallexample |
1490 |
@group |
@group |
1491 |
(local-set-key @var{key} @var{definition}) |
(local-set-key @var{key} @var{binding}) |
1492 |
@equiv{} |
@equiv{} |
1493 |
(define-key (current-local-map) @var{key} @var{definition}) |
(define-key (current-local-map) @var{key} @var{binding}) |
1494 |
@end group |
@end group |
1495 |
@end smallexample |
@end smallexample |
1496 |
@end deffn |
@end deffn |