I am starting work on a project where everyone uses Microsoft Visual Studio to edit code. But I am a user of Emacs.
When I open these C ++ files in my Emacs, they look weird. Example:
namespace·ns·{
»class·Foo·{
»»virtual·function_name(·some_type::const_iterator·start
»»»»»»»»····,·some_type::const_iterator·end
»»»»»»»»»,·boost::shared_ptr<some_type>·varname·)·=·0;
»};
}
where a tab is displayed here »and a space like .. to show the differences.
I would like to view and edit the code transparently, so that it looks right in my Emacs and is saved so that it looks normal for Visual Studio users.
So, how can I install Emacs so that it shows the files how they should be displayed, which is supposed to be:
namespace ns {
class Foo {
virtual function_name( some_type::const_iterator start
, some_type::const_iterator end
, boost::shared_ptr<some_type> varname ) = 0;
};
}
And I want to tell Emacs to save it using tabs in the original, weird, way.