Commit 2d7bfcc3 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(iconify-or-deiconify-frame): New function. Use it for C-z.

parent c6e5e6e0
......@@ -459,7 +459,15 @@ This returns ARGS with the arguments that have been processed removed."
;;;; Function keys
(substitute-key-definition 'suspend-emacs 'iconify-frame global-map)
(defun iconify-or-deiconify-frame ()
"Iconify the selected frame, or deiconify if it's currently an icon."
(if (eq (cdr (assq 'visibility (frame-parameters))) t)
(substitute-key-definition 'suspend-emacs 'iconify-or-deiconify-frame
;; Map certain keypad keys into ASCII characters
;; that people usually expect.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment