One possible alternative would be to define a new function:
(defun my-next-line ()
(interactive)
(next-line 5))
(global-set-key (kbd "C-f") 'my-next-line)
Otherwise, if this is just what you can do with the keyboard, you can use
M-x name-last-kbd-macro
and save it in a .emacs file
M-x insert-kbd-macro
and emacs implement this feature for you. It will just get the name you specified when calling name-last-kbd-macro
source
share