New answers tagged

2 votes
Accepted

How to ignore errors in the middle of a key/command sequence?

I don't know how to ignore errors in a keyboard macro, but you can certainly write a function that ignores the error: (defun ndk/paredit-move-to-end-of-top-level () (interactive) (condition-case ...
  • 21.2k
1 vote

How to move up to the ending parenthesis of the enclosing list (if it exists)?

What you need is this ... (defalias 'eval-next-sexp (kbd "C-M-f C-x C-e C-M-b")) (global-set-key (kbd "C-x C-y") 'eval-next-sexp) What I have done is created a keyboard macro, ...
2 votes
Accepted

How to move up to the ending parenthesis of the enclosing list (if it exists)?

Without Paredit, M-x up-list but it is not bound by default. You can also use C-M-u then C-M-f, but that's not a repeatable binding. With Paredit, M-x paredit-forward-up is available on C-M-n.
  • 3,416
2 votes
Accepted

Keybinding for forward-page and backward-page

From the docs (C-h f global-set-key): global-set-key is an interactive native compiled Lisp function in ‘subr.el’. (global-set-key KEY COMMAND) Give KEY a global binding as COMMAND. COMMAND is the ...

Top 50 recent answers are included