Article View: gnu.emacs.help
Article #189800Re: c++-mode.el
From: Paul Johnson
Date: Wed, 07 Nov 1990 11:42
Date: Wed, 07 Nov 1990 11:42
24 lines
1409 bytes
1409 bytes
>[....] c++-mode is not defined by default (at least not in my emacs). >I added the following code to my .emacs file to load it when needed: >(defun c++-mode () > "Load and start up c++-mode" > (interactive) > (autoload 'c++-mode "c++-mode") > (c++-mode)) *NO* NO No no. Just (autoload 'c++-mode "c++-mode") is all you need. autoload does nothing if the first argument is already bound to something, so your function will just recurse infinitely. Paul. -- Paul Johnson UUCP: <world>!mcvax!ukc!gec-mrc!paj --------------------------------!-------------------------|------------------- GEC-Marconi Research is not | Telex: 995016 GECRES G | Tel: +44 245 73331 responsible for my opinions. | Inet: paj@uk.co.gec-mrc | Fax: +44 245 75244
Technical Details
Message-ID:
<694@puck.mrcu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!ukc!pyrltd!root44!hrc63!mrcu!pajReferences:
<125503@linus.mitre.org> <Nov.6.11.19.27.1990.4109@yoko.rutgers.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,10c7f806c9b1fa88 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1990-11-07 03:42:26 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!ukc!pyrltd!root44!hrc63!mrcu!paj From: paj@mrcu (Paul Johnson) Newsgroups: gnu.emacs.help Subject: Re: c++-mode.el Message-ID: <694@puck.mrcu> Date: 7 Nov 90 11:42:26 GMT References: <125503@linus.mitre.org> <Nov.6.11.19.27.1990.4109@yoko.rutgers.edu> Reply-To: paj@uk.co.gec-mrc (Paul Johnson) Organization: GEC-Marconi Research Centre, Great Baddow, UK Lines: 23 Posted: Wed Nov 7 12:42:26 1990