2016-04-06 14:05:34 +00:00
|
|
|
;;; config.el --- Spacemacs Bootstrap Layer configuration File
|
|
|
|
;;
|
2017-01-06 03:51:13 +00:00
|
|
|
;; Copyright (c) 2012-2017 Sylvain Benner & Contributors
|
2016-04-06 14:05:34 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
|
|
|
;; Thanks to `editorconfig-emacs' for many of these
|
|
|
|
(defvar spacemacs--indent-variable-alist
|
2016-04-20 10:01:45 +00:00
|
|
|
;; Note that derived modes must come before their sources
|
2017-08-28 15:02:44 +00:00
|
|
|
'(((awk-mode c-mode c++-mode java-mode
|
2016-04-06 14:05:34 +00:00
|
|
|
idl-mode java-mode objc-mode pike-mode) . c-basic-offset)
|
2017-08-28 15:02:44 +00:00
|
|
|
(groovy-mode . groovy-indent-offset)
|
2016-04-06 14:05:34 +00:00
|
|
|
(python-mode . python-indent-offset)
|
|
|
|
(cmake-mode . cmake-tab-width)
|
|
|
|
(coffee-mode . coffee-tab-width)
|
|
|
|
(cperl-mode . cperl-indent-level)
|
|
|
|
(css-mode . css-indent-offset)
|
|
|
|
(elixir-mode . elixir-smie-indent-basic)
|
|
|
|
((emacs-lisp-mode lisp-mode) . lisp-indent-offset)
|
|
|
|
(enh-ruby-mode . enh-ruby-indent-level)
|
|
|
|
(erlang-mode . erlang-indent-level)
|
|
|
|
(js2-mode . js2-basic-offset)
|
|
|
|
(js3-mode . js3-indent-level)
|
2016-04-20 10:01:45 +00:00
|
|
|
((js-mode json-mode) . js-indent-level)
|
2016-04-06 14:05:34 +00:00
|
|
|
(latex-mode . (LaTeX-indent-level tex-indent-basic))
|
|
|
|
(livescript-mode . livescript-tab-width)
|
|
|
|
(mustache-mode . mustache-basic-offset)
|
|
|
|
(nxml-mode . nxml-child-indent)
|
|
|
|
(perl-mode . perl-indent-level)
|
|
|
|
(puppet-mode . puppet-indent-level)
|
|
|
|
(ruby-mode . ruby-indent-level)
|
|
|
|
(rust-mode . rust-indent-offset)
|
|
|
|
(scala-mode . scala-indent:step)
|
|
|
|
(sgml-mode . sgml-basic-offset)
|
|
|
|
(sh-mode . sh-basic-offset)
|
2016-08-18 12:34:32 +00:00
|
|
|
(typescript-mode . typescript-indent-level)
|
2016-04-06 14:05:34 +00:00
|
|
|
(web-mode . web-mode-markup-indent-offset)
|
|
|
|
(yaml-mode . yaml-indent-offset))
|
|
|
|
"An alist where each key is either a symbol corresponding
|
|
|
|
to a major mode, a list of such symbols, or the symbol t,
|
|
|
|
acting as default. The values are either integers, symbols
|
|
|
|
or lists of these.")
|
2017-10-15 08:09:43 +00:00
|
|
|
|
|
|
|
;; State cursors
|
|
|
|
(defvar spacemacs-evil-cursors '(("normal" "DarkGoldenrod2" box)
|
|
|
|
("insert" "chartreuse3" (bar . 2))
|
|
|
|
("emacs" "SkyBlue2" box)
|
|
|
|
("hybrid" "SkyBlue2" (bar . 2))
|
|
|
|
("replace" "chocolate" (hbar . 2))
|
|
|
|
("evilified" "LightGoldenrod3" box)
|
|
|
|
("visual" "gray" (hbar . 2))
|
|
|
|
("motion" "plum3" box)
|
|
|
|
("lisp" "HotPink1" box)
|
|
|
|
("iedit" "firebrick1" box)
|
|
|
|
("iedit-insert" "firebrick1" (bar . 2)))
|
|
|
|
"Colors assigned to evil states with cursor definitions.
|
|
|
|
To add your own, use `spacemacs/add-evil-curosr'.")
|