From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Using orgstruct-mode (or just org-cycle) in emacs-lisp-mode Date: Tue, 10 Nov 2015 11:54:27 +0100 Message-ID: <877flqqg4c.fsf@gmx.us> References: <87oaf4wn30.fsf@bernoul.li> <87vb9c7bui.fsf@nicolasgoaziou.fr> <87a8qofq62.fsf@bernoul.li> <87vb9cs8dz.fsf@gmail.com> <87k2pqvj1i.fsf@bernoul.li> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zw6ZT-0004ic-VQ for emacs-orgmode@gnu.org; Tue, 10 Nov 2015 05:54:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zw6ZQ-0001jB-MI for emacs-orgmode@gnu.org; Tue, 10 Nov 2015 05:54:39 -0500 Received: from plane.gmane.org ([80.91.229.3]:53420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zw6ZQ-0001it-Fm for emacs-orgmode@gnu.org; Tue, 10 Nov 2015 05:54:36 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zw6ZP-0006j7-5G for emacs-orgmode@gnu.org; Tue, 10 Nov 2015 11:54:35 +0100 Received: from 62.80.108.12 ([62.80.108.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Nov 2015 11:54:35 +0100 Received: from rasmus by 62.80.108.12 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Nov 2015 11:54:35 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Jonas, Jonas Bernoulli writes: > Well currently I am just using `org-cycle' + `outline-minor-mode', which > works well enough for now. But eventually I would like to also start > using Org's navigational commands. Unfortunately `orgstruct-mode' only > supports org-like headings (;; * heading\n;; ** subheadng) and not > standard Emacs headings (;;; heading\n;;;; subheading). I hope someone > teaches `orgstruct-mode' to support the latter too. Otherwise I will > probably give `outshine' another chance. My init file is structured like this, and I mainly use org-cycle as well. Note that there’s an outstanding bug related to orgstruct and org-show-children (as I remember). ;;* TEXT MODES ;;** AUCTeX ;; ... ;;** Reftex ;; ... ;;* PROG MODES ;; ... ;;** Magit ;;... ;;... ;; Local Variables: ;; outline-regexp: ";;\\*+\\|\\`" ;; orgstruct-heading-prefix-regexp: ";;\\*+\\|\\`" ;; eval: (when after-init-time (orgstruct-mode) (org-global-cycle 3)) ;; End: Rasmus -- Vote for Dick Taid in an election near you!