global-set-key
expects an interactive command. (lambda () (interactive) (forward-line 5))
ought to work.
By the way, C-h f commandp
is a pretty good starting point for errors like that.
More Related Contents:
- Why does Ctrl+. not work when I bind it to a command in Emacs?
- Binding M- / M- in Emacs 23.1.1
- Emacs 24 Package System Initialization Problems
- How do I control how Emacs makes backup files?
- Why does emacs create temporary symbolic links for modified files?
- Open file via SSH and Sudo with Emacs
- How can I make Emacs start-up faster?
- How to intercept a file before it opens and decide which frame
- How to change size of split screen emacs windows?
- How to set the font size in Emacs?
- Emacs on Mac OS X Leopard key bindings
- Set 4 Space Indent in Emacs in Text Mode
- eval-after-load vs. mode hook
- Emacs: help me understand file/buffer management
- Using tramp with EmacsW32 and cygwin, possible?
- automatically disable a global minor mode for a specific major mode
- Using Emacs to recursively find and replace in text files not already open
- What’s in your .emacs?
- How to achieve code folding effects in Emacs?
- When should Emacs #’function syntax be used?
- Emacs: delete whitespaces or a word
- How to keep dir-local variables when switching major modes?
- Unable to hide welcome screen in Emacs
- PATH and exec-path set, but emacs does not find executable
- Automatically closing braces in Emacs?
- How do I make this Emacs frame keep its buffer and not get resized?
- Disable warning about emacs.d in load path
- Idiomatic batch processing of text in Emacs?
- Emacs: How to use a major mode for non-standard file extension
- How can I make emacs highlight lines that go over 80 chars?