A week or two ago I wrote about Eric James Michael Ritz’s post on using pages in Emacs. If you haven’t already, be sure to follow the link to Ritz’s post. Now the estimable Artur Malabarba continues the theme with a post of his own on how to navigate among pages with minimal friction.
Malabarba likes to have easy key bindings for command he uses a lot so he remaps the forward-page
and backward-page
commands to 【Ctrl+x Ctrl+n】 and 【Ctrl+x Ctrl+p】. To take care of edge cases, he also recenters the page.
Malabarba points out that some languages don’t like ^L
characters so he modifies the page-delimiter
variable to make it ;;;
instead. That still works for the Emacs source files and doesn’t interfere with languages like Clojure.
Finally, be sure to read the comment by Ben Maughan on how he combines page navigation with a hydra. That’s also very useful.