[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: program outlining

From: Rusi
Subject: Re: program outlining
Date: Tue, 12 Jul 2016 19:47:18 -0700 (PDT)
User-agent: G2/1.0

On Wednesday, July 13, 2016 at 7:14:27 AM UTC+5:30, Howard Melman wrote:
> I use outline-minor-mode in emacs-lisp mode and do:
>     (setq outline-regexp ";;;;? \\|(....")

This would be serious if we could have it mode-specific
eg "///" for C++
"/***" for C which (I guess?) needs to be coded up as "/\\*\\*\\*"

Two related threads that unfortunately died:
Personally with ASCII being superseded by Unicode I find it strange to have 
a star '*' and that too hardcoded.

> This tracks ;;; and ;;;; comments and also
> lines beginning with a ( and four more characters.
> Works pretty well. I haven't tried finding values for
> outline-regexp in other programming modes.
> Then I add:
>     (define-key outline-minor-mode-map (kbd "C-<tab>") 'org-cycle)
>     (define-key outline-minor-mode-map (kbd "S-<tab>") 'org-global-cycle)))
> Honestly, outline-mode and outline-minor-mode should
> just duplicate the org-cycle commands. 
> -- 
> Howard

reply via email to

[Prev in Thread] Current Thread [Next in Thread]