emacs formatting problems

How can I configure it so that when I create and edit files in emacs the formatting looks the same in editors such as Geany or gedit,, it seems that the indentation is never preserved correctly.

Answers


This is probably related to tab ('\t', 0x9) characters. To forbid emacs from adding tab characters, customize indent-tabs-mode to nil. (C-h v indent-tabs-mode). To replace all tabs in existing files with spaces (and keep it looking as it currently does in emacs), use M-x untabify (acts on the current region).


Need Your Help

Can I multiply every value in a column by a certain number in one database action?

mysql sql ruby-on-rails ruby database

I have a Rails block that multiplies every value in a column by 1.1. Is there a way to condense this into only one or a few database actions, as opposed to one for every row?

Writing queries in code behind vs. SqlDataSource

asp.net sql

I always have this notion that writing SQL queries in the code behind is not good compared to writing it using a SqlDataSource

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.