[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs . How can I associate *.cu files as cc mode as a default ?
From: |
Mike H |
Subject: |
Re: Emacs . How can I associate *.cu files as cc mode as a default ? |
Date: |
Wed, 19 Sep 2007 02:04:29 -0000 |
User-agent: |
G2/1.0 |
On Sep 18, 10:01 pm, Tyler Smith <tyler.sm...@mail.mcgill.ca> wrote:
> On 2007-09-19, Mike H <hsp...@gmail.com> wrote:
>
> > Just one thing ,
>
> > When I put those scripts in, and when I open *.cu files,
> > I get the following...
>
> > Symbol's function definition is void
>
> It should be (c-mode), not (cc-mode). The following works for
> me:
>
> (defun my-find-file-hook()
> (let ((fn (buffer-file-name)))
> (when (string-match "\\.cu$" fn)
> (c-mode))))
> (add-hook 'find-file-hooks 'my-find-file-hook)
>
> Tyler
Thanks a lot !! it works now
- Emacs . How can I associate *.cu files as cc mode as a default ?, Mike H, 2007/09/18
- Re: Emacs . How can I associate *.cu files as cc mode as a default ?, Tyler Smith, 2007/09/18
- Re: Emacs . How can I associate *.cu files as cc mode as a default ?, Mike H, 2007/09/18
- Re: Emacs . How can I associate *.cu files as cc mode as a default ?, Mike H, 2007/09/18
- Re: Emacs . How can I associate *.cu files as cc mode as a default ?, Tyler Smith, 2007/09/18
- Re: Emacs . How can I associate *.cu files as cc mode as a default ?,
Mike H <=
- Re: Emacs . How can I associate *.cu files as cc mode as a default ?, Richard G Riley, 2007/09/19
- Re: Emacs . How can I associate *.cu files as cc mode as a default ?, Tyler Smith, 2007/09/19
- Re: Emacs . How can I associate *.cu files as cc mode as a default ?, Gordon Beaton, 2007/09/19
- Re: Emacs . How can I associate *.cu files as cc mode as a default ?, Tyler Smith, 2007/09/19
- Re: Emacs . How can I associate *.cu files as cc mode as a default ?, Lowell Gilbert, 2007/09/19
- Re: Emacs . How can I associate *.cu files as cc mode as a default ?, Stefan Monnier, 2007/09/19
- Re: Emacs . How can I associate *.cu files as cc mode as a default ?, Tyler Smith, 2007/09/20
Re: Emacs . How can I associate *.cu files as cc mode as a default ?, Gordon Beaton, 2007/09/19