I would like to associate the following function (which toggles on and off full-screen on the active buffer):
(defun toggle-maximize-buffer () "Maximize buffer"
(interactive)
(if (= 1 (length (window-list)))
(jump-to-register '_)
(progn
(set-register '_ (list (current-window-configuration)))
(delete-other-windows))))
with the keyboard shortcut Alt+Sfhit+o.
When I look up the Emacs code for this shortcut with M-x describe-key, I get
ESC O- in the minibuffer, but when I add the following line on my .emacs config file it doesn't work
(global-set-key (kbd "<ESC O>") 'toggle-maximize-buffer)