From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: Convert some files from outline-mode to org-mode Date: Wed, 29 Apr 2020 12:52:42 +0900 Message-ID: <78A6DFC3-234D-415A-8A71-DD38810B9B17@traduction-libre.org> References: <87zhaxi70f.fsf@yahoo.com> <4D145B75-0C23-4371-A388-747BB9E42327@traduction-libre.org> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="123841"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 29 05:56:01 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTdpI-000W4p-DO for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Apr 2020 05:56:00 +0200 Original-Received: from localhost ([::1]:52340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTdpH-00057i-G6 for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Apr 2020 23:55:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57198) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTdo5-0003jI-Mi for emacs-devel@gnu.org; Tue, 28 Apr 2020 23:55:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTdmD-0008Mm-Ne for emacs-devel@gnu.org; Tue, 28 Apr 2020 23:54:45 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:52381) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jTdmD-000898-1j for emacs-devel@gnu.org; Tue, 28 Apr 2020 23:52:49 -0400 X-Originating-IP: 128.53.235.90 Original-Received: from [10.0.1.13] (pl12634.ag0304.nttpc.ne.jp [128.53.235.90]) (Authenticated sender: jean.christophe.helary@traduction-libre.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id C27CCFF804 for ; Wed, 29 Apr 2020 03:52:45 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=217.70.183.199; envelope-from=jean.christophe.helary@traduction-libre.org; helo=relay9-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/28 23:52:46 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 217.70.183.199 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248075 Archived-At: Thank you Howard. > On Apr 29, 2020, at 12:27, Howard Melman wrote: >=20 > Jean-Christophe Helary > writes: >=20 >>> On Apr 27, 2020, at 23:36, Stefan Monnier = wrote: >>>=20 >>> So, from what I gather here, we could satisfy everyone by using for = the >>> file format a very small subset of org-mode (basically the subset >>> that is common with outline-mode), and for the major-mode itself >>> a variant of org-mode that loads faster (e.g. a stripped down = version >>> of org-mode, or an org-mode that's been profiled&tweaked to load >>> faster). >>=20 >> My reading is that org-mode users would just appreciate if >> outline-mode had "non-nonsense" navigation similar to org-mode. >=20 > FWIW, I've had this in my init for several years now. I'm > not an org-mode user, though I've tried a few times. I can > never remember the outline-mode keybindings and found that > org-mode's C-TAB and S-TAB alone were huge wins and just > worked in outline-minor-mode. This my solution to code > folding and I use it in other modes like markdown. Adding > org-cycle and org-global-cycle to outline mode, or some > equivalent I think would be a huge usability win. That's excellent. I could never get used to outline-mode (even though I = tried: I see that I have ouline files more than 10 years old) and that's = one of the reasons why I moved to org-mode. Then I started to learn new = things in org-mode and I can't go back to outline. But what you propose is certainly a solution to all the org-moders who = want to be able to seamlessly access outline files. >=20 > ;; I can never remember the outline keybindings, > ;; grabbing C-tab and S-Tab from org-mode is genius > ;; Also make the outline move commands memorable (borrowing from org) > (with-eval-after-load "outline" > (define-key outline-minor-mode-map (kbd "C-") 'org-cycle) > (define-key outline-minor-mode-map (kbd "S-") 'org-global-cycle) > (define-key outline-minor-mode-map (kbd "M-") 'outline-demote) > (define-key outline-minor-mode-map (kbd "M-") = 'outline-promote) > (define-key outline-minor-mode-map (kbd "M-") = 'outline-move-subtree-up) > (define-key outline-minor-mode-map (kbd "M-") = 'outline-move-subtree-down) > ) Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune