From 27c10a1cbb4aa8b3fff6fefa94f9284c41fe4080 Mon Sep 17 00:00:00 2001 From: luhuaei Date: Sat, 4 Apr 2020 09:19:44 +0800 Subject: [PATCH] eaf-interleave: refactor eaf-interleave-sync-next-note --- app/interleave/eaf-interleave.el | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/interleave/eaf-interleave.el b/app/interleave/eaf-interleave.el index 5bbf70f..ed66996 100644 --- a/app/interleave/eaf-interleave.el +++ b/app/interleave/eaf-interleave.el @@ -273,13 +273,7 @@ This shows the next notes and synchronizes the PDF to the right page number." (interactive) (eaf-interleave--switch-to-org-buffer) (widen) - ;; go to the first notes heading if we're not at an headline or if - ;; we're on multi-pdf heading. This is useful to quickly jump to the - ;; notes if they start at page 96 or so. Image you need to skip page - ;; for page. - (if (eaf-interleave--goto-parent-headline eaf-interleave--page-note-prop) - (org-forward-heading-same-level 1) - (outline-next-visible-heading 1)) + (org-forward-heading-same-level 1) (eaf-interleave--narrow-to-subtree) (org-show-subtree) (org-cycle-hide-drawers t)