[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs: indent automatically on c, c++, php comments
From: |
Alex Braumann |
Subject: |
Re: emacs: indent automatically on c, c++, php comments |
Date: |
Sat, 13 Sep 2003 15:38:38 GMT |
User-agent: |
Pan/0.13.4 (She had eyes like strange sins.) |
On Sat, 13 Sep 2003 13:36:52 +0000, Alan Mackenzie wrote:
>> (defun my-php-mode-hook ( )
>> (setq comment-column 30))
>> (add-hook 'c++-mode-hook 'my-php-mode-hook)
>
> It's your third line that's at fault.
>
> (add-hook 'c++-mode-hook 'my-php-mode-hook) says "Add the function
> my-php-mode-hook to the list of functions which is called whenever C++
> MODE is started."
>
> Replace "c++-mode-hook" with "php-mode-hook", giving this: (add-hook
> 'php-mode-hook 'my-php-mode-hook)
>
> [Or, if you'd already written that and merely made a typo when composing
> your article (it happens to the best of us) come back again!]
>
>
It has been a typo :)
so, here I am!
- emacs: indent automatically on c, c++, php comments, Alex Braumann, 2003/09/06
- Re: emacs: indent automatically on c, c++, php comments, Alan Mackenzie, 2003/09/06
- Re: emacs: indent automatically on c, c++, php comments, Alex Braumann, 2003/09/13
- Re: emacs: indent automatically on c, c++, php comments, Alan Mackenzie, 2003/09/13
- Re: emacs: indent automatically on c, c++, php comments,
Alex Braumann <=
- Re: emacs: indent automatically on c, c++, php comments, Alan Mackenzie, 2003/09/13
- Re: emacs: indent automatically on c, c++, php comments, Alex Braumann, 2003/09/14
- Re: emacs: indent automatically on c, c++, php comments, Stefan Monnier, 2003/09/15
- Re: emacs: indent automatically on c, c++, php comments, Alex Braumann, 2003/09/15
- Re: emacs: indent automatically on c, c++, php comments, Stefan Monnier, 2003/09/15
- Re: emacs: indent automatically on c, c++, php comments, Alan Mackenzie, 2003/09/17
- Re: emacs: indent automatically on c, c++, php comments, Alex Braumann, 2003/09/18