diff options
author | Dave Love <fx@gnu.org> | 2000-08-15 14:20:14 +0000 |
---|---|---|
committer | Dave Love <fx@gnu.org> | 2000-08-15 14:20:14 +0000 |
commit | 23652376ac68456c68d08bf4c3f913a0ca9f5055 (patch) | |
tree | c0f308cf1163cd41940ef3f0e1d1c5755e2674fc /lisp/delsel.el | |
parent | 98d775e56e04e155bc509e61f3152db53f7641b0 (diff) |
(delsel-unload-hook): New function.
Diffstat (limited to 'lisp/delsel.el')
-rw-r--r-- | lisp/delsel.el | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/lisp/delsel.el b/lisp/delsel.el index d2bb43d148..be13301a1f 100644 --- a/lisp/delsel.el +++ b/lisp/delsel.el @@ -134,7 +134,7 @@ use either \\[customize] or the function `delete-selection-mode'." (put 'insert-parentheses 'delete-selection t) -;; This is very useful for cancelling a selection in the minibuffer without +;; This is very useful for cancelling a selection in the minibuffer without ;; aborting the minibuffer. (defun minibuffer-keyboard-quit () "Abort recursive edit. @@ -145,15 +145,22 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer." (setq deactivate-mark t) (abort-recursive-edit))) -(define-key minibuffer-local-map "\C-g" 'minibuffer-keyboard-quit) -(define-key minibuffer-local-ns-map "\C-g" 'minibuffer-keyboard-quit) -(define-key minibuffer-local-completion-map "\C-g" 'minibuffer-keyboard-quit) -(define-key minibuffer-local-must-match-map "\C-g" 'minibuffer-keyboard-quit) -(define-key minibuffer-local-isearch-map "\C-g" 'minibuffer-keyboard-quit) +(define-key minibuffer-local-map "\C-g" 'minibuffer-keyboard-quit) +(define-key minibuffer-local-ns-map "\C-g" 'minibuffer-keyboard-quit) +(define-key minibuffer-local-completion-map "\C-g" 'minibuffer-keyboard-quit) +(define-key minibuffer-local-must-match-map "\C-g" 'minibuffer-keyboard-quit) +(define-key minibuffer-local-isearch-map "\C-g" 'minibuffer-keyboard-quit) + +(defun delsel-unload-hook () + (define-key minibuffer-local-map "\C-g" 'abort-recursive-edit) + (define-key minibuffer-local-ns-map "\C-g" 'abort-recursive-edit) + (define-key minibuffer-local-completion-map "\C-g" 'abort-recursive-edit) + (define-key minibuffer-local-must-match-map "\C-g" 'abort-recursive-edit) + (define-key minibuffer-local-isearch-map "\C-g" 'abort-recursive-edit)) (provide 'delsel) -;; This is the standard way mechanism to put the mode into effect +;; This is the standard way to put the mode into effect ;; if delete-selection-mode has already been set to t ;; when this file is loaded. (when delete-selection-mode |