1

I often have to use this sequence:

M-g M-g <nnn> C-e

to get to the end of a particular line, for example to place a % or \par in TeX files.

Is there some way to combine this into, say (hypothetically):

M-g M-X <nnn>?

1 Answer 1

3
(global-set-key (kbd "M-g M-X")
                (lambda (linum)
                  (interactive "n")
                  (goto-line linum)
                  (end-of-line)))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.