2304 |
|
|
2305 |
(defun global-unset-key (key) |
(defun global-unset-key (key) |
2306 |
"Remove global binding of KEY. |
"Remove global binding of KEY. |
2307 |
KEY is a string representing a sequence of keystrokes." |
KEY is a string or vector representing a sequence of keystrokes." |
2308 |
(interactive "kUnset key globally: ") |
(interactive "kUnset key globally: ") |
2309 |
(global-set-key key nil)) |
(global-set-key key nil)) |
2310 |
|
|
2311 |
(defun local-unset-key (key) |
(defun local-unset-key (key) |
2312 |
"Remove local binding of KEY. |
"Remove local binding of KEY. |
2313 |
KEY is a string representing a sequence of keystrokes." |
KEY is a string or vector representing a sequence of keystrokes." |
2314 |
(interactive "kUnset key locally: ") |
(interactive "kUnset key locally: ") |
2315 |
(if (current-local-map) |
(if (current-local-map) |
2316 |
(local-set-key key nil)) |
(local-set-key key nil)) |