Indent Hints Mode
13 Dec 2011
Tabs vs Spaces
Should you use tabs or spaces to indent your code? Well, if you’re writing new code on a new project, then obviously you get to pick. However, if you’re adding to some existing code the answer is: whatever was already there. Since inspecting whitespace and toggling your text editor’s settings is tedious at best I created an Emacs minor mode to do it for you. The purpose of the mode is summed up best by the README:
If you jump into a file that uses tabs for indentation, you shall continue using tabs for indentation. If you jump into a file that uses spaces for indentation, you shall continue using spaces for indentation. That's the idea.
Grab the code on GitHub: https://github.com/mgalgs/indent-hints-mode
blog comments powered by Disqus
My Stuff
My Projects
Open Source
- My day job: Linux Kernel development for QuIC. Here are my contributions on the Code Aurora Forum.
- My nerd hobby: Creating and contributing to a variety of Open Source projects. See my GitHub profile.
Less Nerdy
- Some of my original music on SoundCloud.