The idea of EditorConfig is to have a file called .editorconfig in your project repository, so that the editors and IDEs of the participating developers can automatically adjust to it.

There is also a mode for Emacs / Spacemacs, which can be integrated quite easily in the following steps:

  1. Add editorconfig to dotspacemacs-additional-packages.
  2. Add (editorconfig-mode 1) to dotspacemacs/user-config.

More details are documented in the README of the plugin repository.

Source snippets

Step 1: Add the plugin into the additional packages:


Step 2: Activate the plugin from your user-config:

(defun dotspacemacs/user-config ()
  (editorconfig-mode 1)


comments powered by Disqus