[comp.emacs] c++-mode.el

allen@SSC.GOV (Mike Allen) (11/09/90)

>>>>> On 6 Nov 90 13:28:16 GMT, jfjr@mbunix.mitre.org  (Freedman) said:

Freedman> Now I have c++-mode.el. How do I arrange things so that
Freedman> c++-mode.el is installed and I automagically go into
Freedman> c++mode when I edit a file with a .cc extension.
From my .emacs:
(autoload 'c++-mode "c++-mode" "Edit file FILENAME in c++-mode." t)
(setq auto-mode-alist (cons '("\\.hxx$" . c++-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.cxx$" . c++-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.h\\+\\+$" . c++-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.c\\+\\+$" . c++-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.C$" . c++-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.cc$" . c++-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.latex$" . latex-mode) auto-mode-alist))
(setq completion-ignored-extensions
      (append completion-ignored-extensions '("..c")))

-Mike

scoob@vlsi.polymtl.ca (Scoob) (04/07/91)

	Hi there !!!

	I was wondering if any of you out there have a summary
	of the commands available from the c++-mode.el in emacs.

	The c-mode has an associated info file but the c++-mode
	has none...

	The best would be an info file but I'll still be very
	grateful to have a summary.

	Thanks.

  scoob@vlsi.polymtl.ca

weikart@prl.dec.com (Chris Weikart) (04/10/91)

In article <1991Apr6.200156.10798@vlsi.polymtl.ca>, scoob@vlsi.polymtl.ca (Scoob) writes:
> 
> 	Hi there !!!
> 
> 	I was wondering if any of you out there have a summary
> 	of the commands available from the c++-mode.el in emacs.
> 
> 	The c-mode has an associated info file but the c++-mode
> 	has none...
> 
> 	The best would be an info file but I'll still be very
> 	grateful to have a summary.
> 
> 	Thanks.
> 
>   scoob@vlsi.polymtl.ca

"C-h m" prints "documentation of current major mode, which describes the commands peculiar to it."

-------------------------------------------------------------------------------
Chris Weikart <weikart@prl.dec.com> .............. DEC Paris Research Lab (PRL)