Re: expand/collapse{} in c++

2005-08-27 Thread Baloff
Kevin Rodgers <[EMAIL PROTECTED]> writes: C-h k C-c@ is undefined (add-hook 'c++-mode-hook '(lambda () (turn-on-auto-fill) ;;Insert a newline if line gets to long. (c-toggle-auto-state 1) ;;Make ; and { and } and : all electric (hs-minor-mode 1)

Re: expand/collapse{} in c++

2005-08-26 Thread Kevin Rodgers
Jason Dufair wrote: > Baloff <[EMAIL PROTECTED]> writes: >>in a .emacs-c++ file to be loaded from inside .emacs, I have >>(local-set-key [f4] "\C-c @ \C-c") ;toggles block hide/show >> >>restart emacs, when I open .cpp file, f4 does nothing. > > First, the 2nd argument to 'local-set-key should be

Re: expand/collapse{} in c++

2005-08-26 Thread Jason Dufair
Baloff <[EMAIL PROTECTED]> writes: > in a .emacs-c++ file to be loaded from inside .emacs, I have > (local-set-key [f4] "\C-c @ \C-c") ;toggles block hide/show > > restart emacs, when I open .cpp file, f4 does nothing. First, the 2nd argument to 'local-set-key should be a function definition, not

Re: expand/collapse{} in c++

2005-08-26 Thread Peter Lee
Baloff writes: Baloff> (add-hook 'c++-mode-hook 'hs-minor-mode t) ;for block hide/show Think you want: (add-hook 'c++-mode-hook (lambda () (hs-minor-mode 1))) ___ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman

Re: expand/collapse{} in c++

2005-08-26 Thread Baloff
Alan Mackenzie <[EMAIL PROTECTED]> writes: > Baloff <[EMAIL PROTECTED]> wrote on 24 Aug 2005 06:00:22 +1000: > > > Hello > > I tried to find out how to do this expand/collapse the code into {...} > > from the info docs but it is not there. could someone help please. > > Oh yes it is! Or, at lea

Re: expand/collapse{} in c++

2005-08-24 Thread Alan Mackenzie
Baloff <[EMAIL PROTECTED]> wrote on 24 Aug 2005 06:00:22 +1000: > Hello > I tried to find out how to do this expand/collapse the code into {...} > from the info docs but it is not there. could someone help please. Oh yes it is! Or, at least, something very like it. The node is in the Emacs manua

Re: expand/collapse{} in c++

2005-08-23 Thread Eli Zaretskii
> From: Baloff <[EMAIL PROTECTED]> > Date: 24 Aug 2005 06:00:22 +1000 > > I tried to find out how to do this expand/collapse the code into {...} > from the info docs but it is not there. could someone help please. Is "C-x $" what you want? It is described in the node "Selective Display". _

Re: expand/collapse{} in c++

2005-08-23 Thread Sébastien Kirche
At 22:08 on aoû 23 2005, Baloff said : > I tried to find out how to do this expand/collapse the code into {...} > from the info docs but it is not there. could someone help please. Look at "FoldingMode" in the wiki : http://www.emacswiki.org/cgi-bin/wiki/CategoryOutline FoldingMode does exactly