[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs: indent automatically on c, c++, php comments
From: |
Alan Mackenzie |
Subject: |
Re: emacs: indent automatically on c, c++, php comments |
Date: |
Wed, 17 Sep 2003 13:42:30 +0000 |
User-agent: |
tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) |
[cc: to poster]
Alex Braumann <ab@msedv.at> wrote on Sun, 14 Sep 2003 13:33:02 GMT:
> yes you're right, concerning the character. unfortunately does a single
> blank not satisfy my php-mode :(.
It doesn't for me any more. It did on Saturday. I don't know why. :-(
Sorry.
I've been having at look at this over the last few days. I think I've
got the answer. Could you put the following into your .emacs, please:
(defun my-php-setup-hook ()
(setq c-comment-only-line-offset '(30 . 30))
(c-set-offset 'comment-intro 'c-lineup-comment))
(add-hook 'php-mode-user-hook 'my-php-setup-hook)
I think it does what you want.
> alex.
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").
- 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, 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, 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 <=
- Re: emacs: indent automatically on c, c++, php comments, Alex Braumann, 2003/09/18