all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* program outlining
@ 2016-07-11 12:59 Rusi
  2016-07-11 13:48 ` Kaushal Modi
                   ` (7 more replies)
  0 siblings, 8 replies; 17+ messages in thread
From: Rusi @ 2016-07-11 12:59 UTC (permalink / raw)
  To: help-gnu-emacs

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’t get it to work

So hideshow…
But hideshow keystrokes are clumsy

Even with the suggestions of
http://stackoverflow.com/questions/791539/how-can-i-have-folds-for-c-java-in-emacs
to do

(add-hook 'c-mode-common-hook
  (lambda()
    (local-set-key (kbd "C-c <right>") 'hs-show-block)
    (local-set-key (kbd "C-c <left>")  'hs-hide-block)
    (local-set-key (kbd "C-c <up>")    'hs-hide-all)
    (local-set-key (kbd "C-c <down>")  '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?


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-07-13 13:42 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-11 12:59 program outlining Rusi
2016-07-11 13:48 ` Kaushal Modi
     [not found] ` <mailman.1089.1468244895.26859.help-gnu-emacs@gnu.org>
2016-07-11 14:12   ` Rusi
2016-07-11 14:34     ` Rusi
2016-07-11 14:59     ` Kaushal Modi
2016-07-11 14:53 ` Eli Zaretskii
2016-07-11 15:13 ` Robert Thorpe
2016-07-11 15:21 ` Emanuel Berg
2016-07-11 18:07   ` Rusi
2016-07-11 18:36     ` Emanuel Berg
2016-07-13 12:49       ` Rusi
2016-07-13 13:31         ` Emanuel Berg
     [not found] ` <mailman.1101.1468248815.26859.help-gnu-emacs@gnu.org>
2016-07-11 18:05   ` Rusi
2016-07-13  1:44 ` Howard Melman
2016-07-13  2:00   ` Drew Adams
     [not found] ` <mailman.1250.1468374265.26859.help-gnu-emacs@gnu.org>
2016-07-13  2:47   ` Rusi
2016-07-13 13:42     ` Howard Melman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.