help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multi-programming language alignment??


From: Teemu Likonen
Subject: Re: multi-programming language alignment??
Date: Sat, 03 Oct 2009 07:20:11 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

On 2009-10-02 20:46 (-0700), Xend wrote:

> i edit a Ruby file, and programming with inline C, mode is ruby-mode,
> so emacs can't alignment C, like this:

> are there some tool can alignment C in Ruby??thanks

I don't know if there is such tool but Emacs has a built-in feature
which can handle several modes in the same text content: indirect
buffers. Clone your buffer with "C-x 4 c" so you have two buffers which
always have equal content and refer to the same file but are otherwise
separate buffers. You can use different major and minor modes and
buffer-local variables in indirect buffers.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]