1

As a background, vim modelines is a magic comment in the text file that sets some of the vim options. It is similar to emacs' file variables.

A modeline like ;; vim: set expandtab : in a lisp file enables the option expandtab which convert tab character to spaces.

Is there a package that does emulation of vim modelines for emacs?

0

1 Answer 1

3

Surprisingly enough, there is such a thing: https://github.com/cinsk/emacs-vim-modeline

I'd recommend to add file-local or directory-local variables to the affected files though. Alternatively, using https://editorconfig.org/ for an editor-agnostic way to specify configuration.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.