I would like to be able to toggle abbrev-mode on and off with ease. Of course I could use
M-x abbrev-mode
But I would like to set this to some keyboard shortcut. To this end I've added the following to my .emacs file
(global-set-key (kbd "<f7>") (lambda () (interactive) (abbrev-mode nil)))
But this doesn't have the desired effect. How do I enable this functionality?