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)
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
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
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
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
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
> 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".
_
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