add editorconfig

This commit is contained in:
Thomas Ruoff
2019-10-06 23:43:32 +02:00
parent cf3e98eb41
commit 523594e06f
2 changed files with 32 additions and 6 deletions

7
.editorconfig Normal file
View File

@@ -0,0 +1,7 @@
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

View File

@@ -4,6 +4,7 @@
I've manly been following the [[https://github.com/danielmai/.emacs.d][Daniel Mai's approach]] to bootstrap the config. I've manly been following the [[https://github.com/danielmai/.emacs.d][Daniel Mai's approach]] to bootstrap the config.
* Looks * Looks
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package doom-themes (use-package doom-themes
:ensure t :ensure t
@@ -14,6 +15,7 @@
:ensure t :ensure t
:hook (after-init . doom-modeline-mode)) :hook (after-init . doom-modeline-mode))
#+END_SRC #+END_SRC
* Functions * Functions
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@@ -38,15 +40,21 @@
#+END_SRC #+END_SRC
* Editor * Editor
#+BEGIN_SRC emacs-lisp
(setq-default tab-width 4
tab-always-indent t
indent-tabs-mode nil
fill-column 80)
#+BEGIN_SRC emacs-lisp
(setq-default tab-width 4
tab-always-indent t
indent-tabs-mode nil
fill-column 80)
(use-package editorconfig
:ensure t
:config
(editorconfig-mode 1))
#+END_SRC #+END_SRC
* Word wrapping * Word wrapping
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq-default word-wrap t (setq-default word-wrap t
truncate-lines t truncate-lines t
@@ -60,6 +68,7 @@
* Keybindings * Keybindings
- [ ] figure out how to define mode keybindings with general - [ ] figure out how to define mode keybindings with general
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package general (use-package general
:ensure t :ensure t
@@ -90,6 +99,7 @@
#+END_SRC #+END_SRC
* evil * evil
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package evil (use-package evil
:ensure t :ensure t
@@ -97,7 +107,7 @@
(setq evil-want-keybinding nil) (setq evil-want-keybinding nil)
:config :config
(evil-mode 1)) (evil-mode 1))
(use-package evil-escape (use-package evil-escape
:ensure t :ensure t
:config :config
@@ -117,6 +127,7 @@
#+END_SRC #+END_SRC
* which-key * which-key
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package which-key (use-package which-key
:ensure t :ensure t
@@ -128,12 +139,15 @@
#+END_SRC #+END_SRC
* Completion * Completion
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package company (use-package company
:ensure t :ensure t
:init (add-hook 'after-init-hook 'global-company-mode)) :init (add-hook 'after-init-hook 'global-company-mode))
#+END_SRC #+END_SRC
* ivy * ivy
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package ivy (use-package ivy
:ensure t :ensure t
@@ -182,6 +196,7 @@
#+END_SRC #+END_SRC
* Projectile * Projectile
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package projectile (use-package projectile
:ensure t :ensure t
@@ -190,6 +205,7 @@
#+END_SRC #+END_SRC
* Git * Git
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package magit (use-package magit
:ensure t :ensure t
@@ -203,6 +219,7 @@
#+END_SRC #+END_SRC
* Org-Mode * Org-Mode
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package f (use-package f
:ensure t) :ensure t)
@@ -218,9 +235,11 @@
#+END_SRC #+END_SRC
* Restart * Restart
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package restart-emacs :ensure t) (use-package restart-emacs :ensure t)
#+END_SRC #+END_SRC
* Customize settings * Customize settings
Set up the customize file to its own separate file, instead of saving customize settings in init.el. Set up the customize file to its own separate file, instead of saving customize settings in init.el.