0

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?

JeffDror
  • 53
  • 5

1 Answers1

2

Remove the wrapper:

(global-set-key (kbd "<f7>") 'abbrev-mode)
abo-abo
  • 14,113
  • 1
  • 30
  • 43