From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Display org-clock info in header line Date: Sun, 18 Nov 2018 11:23:40 +0800 Message-ID: <877ehb3w77.fsf@gmail.com> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gODmz-0004q4-22 for emacs-orgmode@gnu.org; Sat, 17 Nov 2018 22:30:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gODmv-0001s7-1P for emacs-orgmode@gnu.org; Sat, 17 Nov 2018 22:30:24 -0500 Received: from [115.236.248.94] (port=36820 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gODmt-0001rR-Kd for emacs-orgmode@gnu.org; Sat, 17 Nov 2018 22:30:20 -0500 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@gnu.org Sender: "Emacs-orgmode" To: org-mode I found there are configuration like this: #+begin_src emacs-lisp ;;; display org-clock in head-line. (setq org-clock-clocked-in-display nil) (defun my/show-org-clock-in-header-line () (setq-default header-line-format '((" " org-mode-line-string " ")))) (defun my/remove-org-clock-in-header-line () (setq-default header-line-format nil)) (add-hook 'org-clock-in-hook #'my/show-org-clock-in-header-line) (add-hook 'org-clock-out-hook #'my/remove-org-clock-in-header-line) (add-hook 'org-clock-cancel-hook #'my/remove-org-clock-in-header-line) #+end_src But this header-line is displayed in every window. I wish there is a global header-line to display org-clock info. Why I want this? Because my notebook screen is small, when I split window, the mode-line is very small not enough to display much info for org-clock. I don't want to display org-clock info in frame-title. That's not the right place. I saw some Emacs extensions like tabs package (for example: nerdtab https://github.com/casouri/nerdtab) display a global top line instead of per-window. -- [ stardiviner ] I try to make every word tell the meaning what I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3