* multi-programming language alignment??
@ 2009-10-03 3:46 Xend
2009-10-03 4:20 ` Teemu Likonen
0 siblings, 1 reply; 2+ messages in thread
From: Xend @ 2009-10-03 3:46 UTC (permalink / raw)
To: help-gnu-emacs
i edit a Ruby file, and programming with inline C, mode is ruby-mode,
so emacs can't alignment C, like this:
require "inline"
class Mytest
#c is here, not alignment
inline do |builder|
builder.c
"
long add(int b, int a)
{
return a +
b;
}"
#c end
end
end
are there some tool can alignment C in Ruby??thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: multi-programming language alignment??
2009-10-03 3:46 multi-programming language alignment?? Xend
@ 2009-10-03 4:20 ` Teemu Likonen
0 siblings, 0 replies; 2+ messages in thread
From: Teemu Likonen @ 2009-10-03 4:20 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-03 4:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-03 3:46 multi-programming language alignment?? Xend
2009-10-03 4:20 ` Teemu Likonen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).