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:

dotspacemacs-additional-packages
'(
  editorconfig
  )

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

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

Comments

comments powered by Disqus