From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Howard Melman Newsgroups: gmane.emacs.devel Subject: Re: Convert some files from outline-mode to org-mode Date: Tue, 28 Apr 2020 23:27:39 -0400 Message-ID: References: <87zhaxi70f.fsf@yahoo.com> <4D145B75-0C23-4371-A388-747BB9E42327@traduction-libre.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="18201"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) To: emacs-devel@gnu.org Cancel-Lock: sha1:MPpRHgMPtfLTC7kDu5u1ERvK9YU= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 29 05:29:25 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 1jTdPZ-0004ee-Iw for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Apr 2020 05:29:25 +0200 Original-Received: from localhost ([::1]:39998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTdPY-0004MY-LF for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Apr 2020 23:29:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55062) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTdOr-0003nY-2P for emacs-devel@gnu.org; Tue, 28 Apr 2020 23:28:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTdO2-0002mz-Hs for emacs-devel@gnu.org; Tue, 28 Apr 2020 23:28:40 -0400 Original-Received: from ciao.gmane.io ([159.69.161.202]:49478) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jTdO2-0002lr-6A for emacs-devel@gnu.org; Tue, 28 Apr 2020 23:27:50 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jTdNx-0002v1-VW for emacs-devel@gnu.org; Wed, 29 Apr 2020 05:27:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=159.69.161.202; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/28 20:53:21 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 159.69.161.202 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:248071 Archived-At: Jean-Christophe Helary writes: >> On Apr 27, 2020, at 23:36, Stefan Monnier wrote: >> >> 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). > > My reading is that org-mode users would just appreciate if > outline-mode had "non-nonsense" navigation similar to org-mode. 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. ;; 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) ) -- Howard