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
- GitHub Profile
- Stack Overflow Careers Profile
- Stack Overflow Profile
- G+ Profile
- PGP Public Key
- Rafty -- Ripper and Friggin Transcoder, Y'all
- Make Readme Markdown
- Diffview Mode
- Indent Hints Mode
- Track That Thing
- Co-Founder & CEO of Directangular, LLC.
- Previously: Linux Kernel development for QuIC. Some of my work (a little stale) is available on the Code Aurora Forum, here, here, here, and here.
- My nerd hobby: Creating and contributing to a variety of Open Source projects. See my GitHub profile.