From a3150100c58f1e6f057c49d2fc8d792898db553b Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 28 May 2015 16:49:42 +0900 Subject: [PATCH] Add editorconfig entry --- .editorconfig | 4 ++++ emacs.el | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.editorconfig b/.editorconfig index e62b828..94b0ee9 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,3 +4,7 @@ root = true end_of_line = lf insert_final_newline = true charset = utf-8 + +[*.js] +indent_size = 2 +indent_style = space diff --git a/emacs.el b/emacs.el index 1032aee..afbe8bc 100644 --- a/emacs.el +++ b/emacs.el @@ -711,6 +711,8 @@ IF OK-IF-ALREADY-EXISTS is true force download." ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; file handling +(require 'editorconfig nil t) + (setq revert-without-query '(".+")) ;; save cursor position