From 3859972b60b9bf83bd9bc0d231c76e74f2fd246f Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Sat, 28 Jun 2025 01:22:59 -0700 Subject: [PATCH] Improve outline navigation behavior --- emacs/init.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/emacs/init.el b/emacs/init.el index ada3ec5..8652d06 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -240,7 +240,12 @@ (use-package outli :ensure (:host github :repo "jdtsmith/outli") :bind (:map outli-mode-map - ("C-c C-p" . (lambda () (interactive) (outline-back-to-heading)))) + ("C-c C-p" . (lambda () (interactive) (outline-back-to-heading))) + ;; Stop outline navigation from capturing C-p and C-n, which makes it + ;; difficult to navigate into a section + :map outline-navigation-repeat-map + ("C-p" . nil) + ("C-n" . nil)) :hook ((prog-mode . outli-mode) (text-mode . outli-mode)))