emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] Center currently clocked headline to top of screen


From: Sebastien Vauban
Subject: [O] [PATCH] Center currently clocked headline to top of screen
Date: Thu, 22 Aug 2013 10:36:00 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (windows-nt)

Hello,

When jumping to the currently clocked headline (via `C-c C-x C-j'), it seems
(to me) more logical to recenter that headline at the top of the screen (vs at
the center of the screen, that is the current behavior).

Here the patch to do so.

Best regards,
  Seb

>From dc2cabbab8ed13b47c310821447ac7c0ed58af55 Mon Sep 17 00:00:00 2001
From: Sebastien Vauban <address@hidden>
Date: Thu, 22 Aug 2013 10:31:08 +0200
Subject: [PATCH] Move current headline to top of screen

---
 lisp/org-clock.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 656fb4c..b7d2add 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -1691,7 +1691,7 @@ With prefix arg SELECT, offer recently clocked tasks for 
selection."
     (org-show-entry)
     (org-back-to-heading t)
     (org-cycle-hide-drawers 'children)
-    (recenter)
+    (recenter 0)
     (org-reveal)
     (if recent
        (message "No running clock, this is the most recently clocked task"))
-- 
1.7.9

-- 
Sebastien Vauban




reply via email to

[Prev in Thread] Current Thread [Next in Thread]