Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jscheid/dtrt-indent

A minor mode that guesses the indentation offset originally used for creating source code files and transparently adjusts the corresponding settings in Emacs, making it more convenient to edit foreign files.
https://github.com/jscheid/dtrt-indent

Last synced: 3 days ago
JSON representation

A minor mode that guesses the indentation offset originally used for creating source code files and transparently adjusts the corresponding settings in Emacs, making it more convenient to edit foreign files.

Awesome Lists containing this project

README

        

# dtrt-indent

An Emacs minor mode that guesses the indentation offset originally used for creating source code files and transparently adjusts the corresponding settings in Emacs, making it more convenient to edit foreign files.

You can install dtrt-indent from MELPA.

To activate it, M-x customize-variable dtrt-indent-global-mode, and turn on
"Dtrt Indent Global Mode". See `dtrt-indent.el` for full documentation.

# Related work

[guess-style](https://nschum.de/src/emacs/guess-style/) is similar to dtrt-indent, but only supports `cc-mode`, and only guesses offsets of 2, 4 and 8.

[vim-sleuth](https://github.com/tpope/vim-sleuth) provides similar functionality for Vim.