From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: Completely hide the :PROPERTIES: drawer in org-mode. Date: Wed, 13 Feb 2019 19:44:47 +0100 Message-ID: <84d0nvcyu8.fsf@gmail.com> References: <87lg2l4d2g.fsf@nicolasgoaziou.fr> <875ztnu5c3.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:47012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtzaF-0008Ot-Rr for emacs-orgmode@gnu.org; Wed, 13 Feb 2019 13:48:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtzWj-0001g3-3Q for emacs-orgmode@gnu.org; Wed, 13 Feb 2019 13:44:57 -0500 Received: from [195.159.176.226] (port=47698 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtzWh-0001cL-RC for emacs-orgmode@gnu.org; Wed, 13 Feb 2019 13:44:56 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gtzWe-0005p8-Na for emacs-orgmode@gnu.org; Wed, 13 Feb 2019 19:44:52 +0100 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: emacs-orgmode@gnu.org > More generally, I feel uneasy about completely hiding stuff. Org format > is not meant to be opaque. I think the current situation is fine, as far > as /core/ Org is concerned. Of course, users are free to extend it to > their own needs. Yes, indeed. Occasionally I use #v+ #+begin_src elisp ; lexical binding, please! (let (ols) (defun mw-org-hide-meta-heading-info () "Hide meta data following headings." (interactive) (org-show-all) ; expand all props before make invisible to avoid ellipses. (save-excursion (goto-char (point-min)) (unless (org-at-heading-p) (outline-next-heading)) (while (not (eobp)) (let ((beg (1+ (progn (end-of-line) (point)))) (end (1- (progn (org-end-of-meta-data t) (point))))) (when (< beg end) (push (make-overlay beg end) ols) (overlay-put (car ols) 'invisible t))) (when (not (org-at-heading-p)) (outline-next-heading))))) (defun mw-org-show-meta-info-lines () "Show meta info." (interactive) (mapc #'delete-overlay ols) (setq ols nil))) #+end_src #v- to completely get the property meta stuff out of sight. Ciao, -- Marco GPG: http://pgp.mit.edu/pks/lookup?search=0x49010A040A3AE6F2