From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: [PATCH] Center currently clocked headline to top of screen Date: Thu, 22 Aug 2013 10:36:00 +0200 Message-ID: <861u5mgm1b.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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 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