From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: program outlining Date: Mon, 11 Jul 2016 05:59:59 -0700 (PDT) Message-ID: <69592de8-5bae-48ac-9435-76e219d6ee38@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1468242046 30576 80.91.229.3 (11 Jul 2016 13:00:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2016 13:00:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 11 15:00:40 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bMapC-0000qZ-QR for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jul 2016 15:00:38 +0200 Original-Received: from localhost ([::1]:33536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMapB-00088g-VE for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jul 2016 09:00:37 -0400 X-Received: by 10.176.0.35 with SMTP id 32mr17268794uai.11.1468241999544; Mon, 11 Jul 2016 05:59:59 -0700 (PDT) X-Received: by 10.36.230.194 with SMTP id e185mr259264ith.9.1468241999504; Mon, 11 Jul 2016 05:59:59 -0700 (PDT) Original-Path: usenet.stanford.edu!r1no15970861ige.0!news-out.google.com!d130ni10ith.0!nntp.google.com!r1no15970854ige.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=203.187.205.171; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 203.187.205.171 User-Agent: G2/1.0 Injection-Date: Mon, 11 Jul 2016 12:59:59 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:218463 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110772 Archived-At: Ive been trying to figure out the best outlining that emacs can give for programs. Outline-mode seems to be more for text than code Outshine mode inspired by above+org-mode seemed promising in that it seems = to make org mode's wonderful TAB-behavior work for code. But I couldn=E2=80=99t get it to work So hideshow=E2=80=A6 But hideshow keystrokes are clumsy Even with the suggestions of http://stackoverflow.com/questions/791539/how-can-i-have-folds-for-c-java-i= n-emacs to do (add-hook 'c-mode-common-hook (lambda() (local-set-key (kbd "C-c ") 'hs-show-block) (local-set-key (kbd "C-c ") 'hs-hide-block) (local-set-key (kbd "C-c ") 'hs-hide-all) (local-set-key (kbd "C-c ") 'hs-show-all) (hs-minor-mode t))) its better than the builtin defaults but not nearly as neat as org's all-purpose TAB and Shift-TAB. Is it so hard to do org's TAB cycling ie hs-show-block and hs-hide-block on the same key in cycle?