I've been using emacs for years, but I'm relatively new to customizing lisp (beyond plugging in lines from other emacs scripts / package installation instructions). I programmed scheme before, so I'm somewhat familiar, but that was also a long time ago.
How do I map a key to more than one operation? I'm adapting the cycle font sizes lisp code form: http://www.emacswiki.org/emacs/CycleFontSizes
except that I would like to maximize the window (I'm using mac OSX) after font resizing.
I can maximize the window using maxframe:
(require 'maxframe)
(add-hook 'window-setup-hook 'maximize-frame t)
How do I add this to the font size key bindings. I'd like to do something like:
(define-key global-map (read-kbd-macro "C-0")
(lambda()
'font-zoom-reset-font-size
(add-hook 'window-setup-hook 'maximize-frame t))
)
This isn't correct because define-key is expecting a different type. This is probably pretty trivial after seeing an example...