[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 12:04:19 GMT |
User-agent: |
Pan/0.13.4 (She had eyes like strange sins.) |
On Sat, 06 Sep 2003 10:37:40 +0000, Alan Mackenzie wrote:
> You're using C++ Mode, right?
No I'm using PHP Mode at the moment.
>
>Instead of typing '//', use M-; (that is, press the
> semicolon key whilst holding the Meta key (probably the <alt> or <window>
> key). This will then insert the '//' at comment-column, which is by
> default 32.
M- (alt + ;) produces '//' at column 0!
That's my problem and I don't know how to fix it -> that '//' will appear
on line 32;
> (defun my-c++-mode-hook ()
> (setq comment-column 30))
> (add-hook 'c++-mode-hook 'my-c++-mode-hook)
>
This doens't work, unfortunately.
(defun my-php-mode-hook ( )
(setq comment-column 30))
(add-hook 'c++-mode-hook 'my-php-mode-hook)
Is it possible that php-mode doens't know comment-column??
Well, as I said, I'm an emacs-rookie.
tc,
alex.
- 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 <=
- 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, 2003/09/17
- Re: emacs: indent automatically on c, c++, php comments, Alex Braumann, 2003/09/18