Browse Source

Add .spacemacs

Piotr Orzechowski 4 weeks ago
parent
commit
8a6537574e
1 changed files with 329 additions and 0 deletions
  1. 329 0
      .spacemacs

+ 329 - 0
.spacemacs View File

@@ -0,0 +1,329 @@
1
+;; -*- mode: emacs-lisp -*-
2
+;; This file is loaded by Spacemacs at startup.
3
+;; It must be stored in your home directory.
4
+
5
+(defun dotspacemacs/layers ()
6
+  "Configuration Layers declaration.
7
+You should not put any user code in this function besides modifying the variable
8
+values."
9
+  (setq-default
10
+   ;; Base distribution to use. This is a layer contained in the directory
11
+   ;; `+distribution'. For now available distributions are `spacemacs-base'
12
+   ;; or `spacemacs'. (default 'spacemacs)
13
+   dotspacemacs-distribution 'spacemacs
14
+   ;; Lazy installation of layers (i.e. layers are installed only when a file
15
+   ;; with a supported type is opened). Possible values are `all', `unused'
16
+   ;; and `nil'. `unused' will lazy install only unused layers (i.e. layers
17
+   ;; not listed in variable `dotspacemacs-configuration-layers'), `all' will
18
+   ;; lazy install any layer that support lazy installation even the layers
19
+   ;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy
20
+   ;; installation feature and you have to explicitly list a layer in the
21
+   ;; variable `dotspacemacs-configuration-layers' to install it.
22
+   ;; (default 'unused)
23
+   dotspacemacs-enable-lazy-installation 'unused
24
+   ;; If non-nil then Spacemacs will ask for confirmation before installing
25
+   ;; a layer lazily. (default t)
26
+   dotspacemacs-ask-for-lazy-installation t
27
+   ;; If non-nil layers with lazy install support are lazy installed.
28
+   ;; List of additional paths where to look for configuration layers.
29
+   ;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
30
+   dotspacemacs-configuration-layer-path '()
31
+   ;; List of configuration layers to load.
32
+   dotspacemacs-configuration-layers
33
+   '(
34
+     ;; ----------------------------------------------------------------
35
+     ;; Example of useful layers you may want to use right away.
36
+     ;; Uncomment some layer names and press <SPC f e R> (Vim style) or
37
+     ;; <M-m f e R> (Emacs style) to install them.
38
+     ;; ----------------------------------------------------------------
39
+     ivy
40
+     ;; auto-completion
41
+     ;; better-defaults
42
+     emacs-lisp
43
+     ;; git
44
+     ;; markdown
45
+     ;; org
46
+     ;; (shell :variables
47
+     ;;        shell-default-height 30
48
+     ;;        shell-default-position 'bottom)
49
+     ;; spell-checking
50
+     ;; syntax-checking
51
+     ;; version-control
52
+     )
53
+   ;; List of additional packages that will be installed without being
54
+   ;; wrapped in a layer. If you need some configuration for these
55
+   ;; packages, then consider creating a layer. You can also put the
56
+   ;; configuration in `dotspacemacs/user-config'.
57
+   dotspacemacs-additional-packages '()
58
+   ;; A list of packages that cannot be updated.
59
+   dotspacemacs-frozen-packages '()
60
+   ;; A list of packages that will not be installed and loaded.
61
+   dotspacemacs-excluded-packages '()
62
+   ;; Defines the behaviour of Spacemacs when installing packages.
63
+   ;; Possible values are `used-only', `used-but-keep-unused' and `all'.
64
+   ;; `used-only' installs only explicitly used packages and uninstall any
65
+   ;; unused packages as well as their unused dependencies.
66
+   ;; `used-but-keep-unused' installs only the used packages but won't uninstall
67
+   ;; them if they become unused. `all' installs *all* packages supported by
68
+   ;; Spacemacs and never uninstall them. (default is `used-only')
69
+   dotspacemacs-install-packages 'used-only))
70
+
71
+(defun dotspacemacs/init ()
72
+  "Initialization function.
73
+This function is called at the very startup of Spacemacs initialization
74
+before layers configuration.
75
+You should not put any user code in there besides modifying the variable
76
+values."
77
+  ;; This setq-default sexp is an exhaustive list of all the supported
78
+  ;; spacemacs settings.
79
+  (setq-default
80
+   ;; If non nil ELPA repositories are contacted via HTTPS whenever it's
81
+   ;; possible. Set it to nil if you have no way to use HTTPS in your
82
+   ;; environment, otherwise it is strongly recommended to let it set to t.
83
+   ;; This variable has no effect if Emacs is launched with the parameter
84
+   ;; `--insecure' which forces the value of this variable to nil.
85
+   ;; (default t)
86
+   dotspacemacs-elpa-https t
87
+   ;; Maximum allowed time in seconds to contact an ELPA repository.
88
+   dotspacemacs-elpa-timeout 5
89
+   ;; If non nil then spacemacs will check for updates at startup
90
+   ;; when the current branch is not `develop'. Note that checking for
91
+   ;; new versions works via git commands, thus it calls GitHub services
92
+   ;; whenever you start Emacs. (default nil)
93
+   dotspacemacs-check-for-update nil
94
+   ;; If non-nil, a form that evaluates to a package directory. For example, to
95
+   ;; use different package directories for different Emacs versions, set this
96
+   ;; to `emacs-version'.
97
+   dotspacemacs-elpa-subdirectory nil
98
+   ;; One of `vim', `emacs' or `hybrid'.
99
+   ;; `hybrid' is like `vim' except that `insert state' is replaced by the
100
+   ;; `hybrid state' with `emacs' key bindings. The value can also be a list
101
+   ;; with `:variables' keyword (similar to layers). Check the editing styles
102
+   ;; section of the documentation for details on available variables.
103
+   ;; (default 'vim)
104
+   dotspacemacs-editing-style 'vim
105
+   ;; If non nil output loading progress in `*Messages*' buffer. (default nil)
106
+   dotspacemacs-verbose-loading nil
107
+   ;; Specify the startup banner. Default value is `official', it displays
108
+   ;; the official spacemacs logo. An integer value is the index of text
109
+   ;; banner, `random' chooses a random text banner in `core/banners'
110
+   ;; directory. A string value must be a path to an image format supported
111
+   ;; by your Emacs build.
112
+   ;; If the value is nil then no banner is displayed. (default 'official)
113
+   dotspacemacs-startup-banner 'official
114
+   ;; List of items to show in startup buffer or an association list of
115
+   ;; the form `(list-type . list-size)`. If nil then it is disabled.
116
+   ;; Possible values for list-type are:
117
+   ;; `recents' `bookmarks' `projects' `agenda' `todos'."
118
+   ;; List sizes may be nil, in which case
119
+   ;; `spacemacs-buffer-startup-lists-length' takes effect.
120
+   dotspacemacs-startup-lists '((recents . 5)
121
+                                (projects . 7))
122
+   ;; True if the home buffer should respond to resize events.
123
+   dotspacemacs-startup-buffer-responsive t
124
+   ;; Default major mode of the scratch buffer (default `text-mode')
125
+   dotspacemacs-scratch-mode 'text-mode
126
+   ;; List of themes, the first of the list is loaded when spacemacs starts.
127
+   ;; Press <SPC> T n to cycle to the next theme in the list (works great
128
+   ;; with 2 themes variants, one dark and one light)
129
+   dotspacemacs-themes '(spacemacs-dark
130
+                         spacemacs-light)
131
+   ;; If non nil the cursor color matches the state color in GUI Emacs.
132
+   dotspacemacs-colorize-cursor-according-to-state t
133
+   ;; Default font, or prioritized list of fonts. `powerline-scale' allows to
134
+   ;; quickly tweak the mode-line size to make separators look not too crappy.
135
+   dotspacemacs-default-font '("Source Code Pro"
136
+                               :size 13
137
+                               :weight normal
138
+                               :width normal
139
+                               :powerline-scale 1.1)
140
+   ;; The leader key
141
+   dotspacemacs-leader-key "SPC"
142
+   ;; The key used for Emacs commands (M-x) (after pressing on the leader key).
143
+   ;; (default "SPC")
144
+   dotspacemacs-emacs-command-key "SPC"
145
+   ;; The key used for Vim Ex commands (default ":")
146
+   dotspacemacs-ex-command-key ":"
147
+   ;; The leader key accessible in `emacs state' and `insert state'
148
+   ;; (default "M-m")
149
+   dotspacemacs-emacs-leader-key "M-m"
150
+   ;; Major mode leader key is a shortcut key which is the equivalent of
151
+   ;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",")
152
+   dotspacemacs-major-mode-leader-key ","
153
+   ;; Major mode leader key accessible in `emacs state' and `insert state'.
154
+   ;; (default "C-M-m")
155
+   dotspacemacs-major-mode-emacs-leader-key "C-M-m"
156
+   ;; These variables control whether separate commands are bound in the GUI to
157
+   ;; the key pairs C-i, TAB and C-m, RET.
158
+   ;; Setting it to a non-nil value, allows for separate commands under <C-i>
159
+   ;; and TAB or <C-m> and RET.
160
+   ;; In the terminal, these pairs are generally indistinguishable, so this only
161
+   ;; works in the GUI. (default nil)
162
+   dotspacemacs-distinguish-gui-tab nil
163
+   ;; If non nil `Y' is remapped to `y$' in Evil states. (default nil)
164
+   dotspacemacs-remap-Y-to-y$ nil
165
+   ;; If non-nil, the shift mappings `<' and `>' retain visual state if used
166
+   ;; there. (default t)
167
+   dotspacemacs-retain-visual-state-on-shift t
168
+   ;; If non-nil, J and K move lines up and down when in visual mode.
169
+   ;; (default nil)
170
+   dotspacemacs-visual-line-move-text nil
171
+   ;; If non nil, inverse the meaning of `g' in `:substitute' Evil ex-command.
172
+   ;; (default nil)
173
+   dotspacemacs-ex-substitute-global nil
174
+   ;; Name of the default layout (default "Default")
175
+   dotspacemacs-default-layout-name "Default"
176
+   ;; If non nil the default layout name is displayed in the mode-line.
177
+   ;; (default nil)
178
+   dotspacemacs-display-default-layout nil
179
+   ;; If non nil then the last auto saved layouts are resume automatically upon
180
+   ;; start. (default nil)
181
+   dotspacemacs-auto-resume-layouts nil
182
+   ;; Size (in MB) above which spacemacs will prompt to open the large file
183
+   ;; literally to avoid performance issues. Opening a file literally means that
184
+   ;; no major mode or minor modes are active. (default is 1)
185
+   dotspacemacs-large-file-size 1
186
+   ;; Location where to auto-save files. Possible values are `original' to
187
+   ;; auto-save the file in-place, `cache' to auto-save the file to another
188
+   ;; file stored in the cache directory and `nil' to disable auto-saving.
189
+   ;; (default 'cache)
190
+   dotspacemacs-auto-save-file-location 'cache
191
+   ;; Maximum number of rollback slots to keep in the cache. (default 5)
192
+   dotspacemacs-max-rollback-slots 5
193
+   ;; If non nil, `helm' will try to minimize the space it uses. (default nil)
194
+   dotspacemacs-helm-resize nil
195
+   ;; if non nil, the helm header is hidden when there is only one source.
196
+   ;; (default nil)
197
+   dotspacemacs-helm-no-header nil
198
+   ;; define the position to display `helm', options are `bottom', `top',
199
+   ;; `left', or `right'. (default 'bottom)
200
+   dotspacemacs-helm-position 'bottom
201
+   ;; Controls fuzzy matching in helm. If set to `always', force fuzzy matching
202
+   ;; in all non-asynchronous sources. If set to `source', preserve individual
203
+   ;; source settings. Else, disable fuzzy matching in all sources.
204
+   ;; (default 'always)
205
+   dotspacemacs-helm-use-fuzzy 'always
206
+   ;; If non nil the paste micro-state is enabled. When enabled pressing `p`
207
+   ;; several times cycle between the kill ring content. (default nil)
208
+   dotspacemacs-enable-paste-transient-state nil
209
+   ;; Which-key delay in seconds. The which-key buffer is the popup listing
210
+   ;; the commands bound to the current keystroke sequence. (default 0.4)
211
+   dotspacemacs-which-key-delay 0.4
212
+   ;; Which-key frame position. Possible values are `right', `bottom' and
213
+   ;; `right-then-bottom'. right-then-bottom tries to display the frame to the
214
+   ;; right; if there is insufficient space it displays it at the bottom.
215
+   ;; (default 'bottom)
216
+   dotspacemacs-which-key-position 'bottom
217
+   ;; If non nil a progress bar is displayed when spacemacs is loading. This
218
+   ;; may increase the boot time on some systems and emacs builds, set it to
219
+   ;; nil to boost the loading time. (default t)
220
+   dotspacemacs-loading-progress-bar t
221
+   ;; If non nil the frame is fullscreen when Emacs starts up. (default nil)
222
+   ;; (Emacs 24.4+ only)
223
+   dotspacemacs-fullscreen-at-startup nil
224
+   ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen.
225
+   ;; Use to disable fullscreen animations in OSX. (default nil)
226
+   dotspacemacs-fullscreen-use-non-native nil
227
+   ;; If non nil the frame is maximized when Emacs starts up.
228
+   ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.
229
+   ;; (default nil) (Emacs 24.4+ only)
230
+   dotspacemacs-maximized-at-startup nil
231
+   ;; A value from the range (0..100), in increasing opacity, which describes
232
+   ;; the transparency level of a frame when it's active or selected.
233
+   ;; Transparency can be toggled through `toggle-transparency'. (default 90)
234
+   dotspacemacs-active-transparency 90
235
+   ;; A value from the range (0..100), in increasing opacity, which describes
236
+   ;; the transparency level of a frame when it's inactive or deselected.
237
+   ;; Transparency can be toggled through `toggle-transparency'. (default 90)
238
+   dotspacemacs-inactive-transparency 90
239
+   ;; If non nil show the titles of transient states. (default t)
240
+   dotspacemacs-show-transient-state-title t
241
+   ;; If non nil show the color guide hint for transient state keys. (default t)
242
+   dotspacemacs-show-transient-state-color-guide t
243
+   ;; If non nil unicode symbols are displayed in the mode line. (default t)
244
+   dotspacemacs-mode-line-unicode-symbols t
245
+   ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth
246
+   ;; scrolling overrides the default behavior of Emacs which recenters point
247
+   ;; when it reaches the top or bottom of the screen. (default t)
248
+   dotspacemacs-smooth-scrolling t
249
+   ;; Control line numbers activation.
250
+   ;; If set to `t' or `relative' line numbers are turned on in all `prog-mode' and
251
+   ;; `text-mode' derivatives. If set to `relative', line numbers are relative.
252
+   ;; This variable can also be set to a property list for finer control:
253
+   ;; '(:relative nil
254
+   ;;   :disabled-for-modes dired-mode
255
+   ;;                       doc-view-mode
256
+   ;;                       markdown-mode
257
+   ;;                       org-mode
258
+   ;;                       pdf-view-mode
259
+   ;;                       text-mode
260
+   ;;   :size-limit-kb 1000)
261
+   ;; (default nil)
262
+   dotspacemacs-line-numbers nil
263
+   ;; Code folding method. Possible values are `evil' and `origami'.
264
+   ;; (default 'evil)
265
+   dotspacemacs-folding-method 'evil
266
+   ;; If non-nil smartparens-strict-mode will be enabled in programming modes.
267
+   ;; (default nil)
268
+   dotspacemacs-smartparens-strict-mode nil
269
+   ;; If non-nil pressing the closing parenthesis `)' key in insert mode passes
270
+   ;; over any automatically added closing parenthesis, bracket, quote, etc…
271
+   ;; This can be temporary disabled by pressing `C-q' before `)'. (default nil)
272
+   dotspacemacs-smart-closing-parenthesis nil
273
+   ;; Select a scope to highlight delimiters. Possible values are `any',
274
+   ;; `current', `all' or `nil'. Default is `all' (highlight any scope and
275
+   ;; emphasis the current one). (default 'all)
276
+   dotspacemacs-highlight-delimiters 'all
277
+   ;; If non nil, advise quit functions to keep server open when quitting.
278
+   ;; (default nil)
279
+   dotspacemacs-persistent-server nil
280
+   ;; List of search tool executable names. Spacemacs uses the first installed
281
+   ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'.
282
+   ;; (default '("ag" "pt" "ack" "grep"))
283
+   dotspacemacs-search-tools '("ag" "pt" "ack" "grep")
284
+   ;; The default package repository used if no explicit repository has been
285
+   ;; specified with an installed package.
286
+   ;; Not used for now. (default nil)
287
+   dotspacemacs-default-package-repository nil
288
+   ;; Delete whitespace while saving buffer. Possible values are `all'
289
+   ;; to aggressively delete empty line and long sequences of whitespace,
290
+   ;; `trailing' to delete only the whitespace at end of lines, `changed'to
291
+   ;; delete only whitespace for changed lines or `nil' to disable cleanup.
292
+   ;; (default nil)
293
+   dotspacemacs-whitespace-cleanup nil
294
+   ))
295
+
296
+(defun dotspacemacs/user-init ()
297
+  "Initialization function for user code.
298
+It is called immediately after `dotspacemacs/init', before layer configuration
299
+executes.
300
+ This function is mostly useful for variables that need to be set
301
+before packages are loaded. If you are unsure, you should try in setting them in
302
+`dotspacemacs/user-config' first."
303
+  )
304
+
305
+(defun dotspacemacs/user-config ()
306
+  "Configuration function for user code.
307
+This function is called at the very end of Spacemacs initialization after
308
+layers configuration.
309
+This is the place where most of your configurations should be done. Unless it is
310
+explicitly specified that a variable should be set before a package is loaded,
311
+you should place your code here."
312
+  )
313
+
314
+;; Do not write anything past this comment. This is where Emacs will
315
+;; auto-generate custom variable definitions.
316
+(custom-set-variables
317
+ ;; custom-set-variables was added by Custom.
318
+ ;; If you edit it by hand, you could mess it up, so be careful.
319
+ ;; Your init file should contain only one such instance.
320
+ ;; If there is more than one, they won't work right.
321
+ '(package-selected-packages
322
+   (quote
323
+    (ws-butler winum which-key wgrep volatile-highlights vi-tilde-fringe uuidgen use-package toc-org spaceline powerline smex restart-emacs request rainbow-delimiters popwin persp-mode pcre2el paradox spinner org-plus-contrib org-bullets open-junk-file neotree move-text macrostep lorem-ipsum linum-relative link-hint ivy-hydra indent-guide hydra hungry-delete hl-todo highlight-parentheses highlight-numbers parent-mode highlight-indentation helm-make helm helm-core google-translate golden-ratio flx-ido flx fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state smartparens evil-indent-plus evil-iedit-state iedit evil-exchange evil-escape evil-ediff evil-args evil-anzu anzu evil goto-chg undo-tree eval-sexp-fu highlight elisp-slime-nav dumb-jump popup f dash s diminish define-word counsel-projectile projectile pkg-info epl counsel swiper ivy column-enforce-mode clean-aindent-mode bind-map bind-key auto-highlight-symbol auto-compile packed async aggressive-indent adaptive-wrap ace-window ace-link avy))))
324
+(custom-set-faces
325
+ ;; custom-set-faces was added by Custom.
326
+ ;; If you edit it by hand, you could mess it up, so be careful.
327
+ ;; Your init file should contain only one such instance.
328
+ ;; If there is more than one, they won't work right.
329
+ )