├── README.md └── init.el /README.md: -------------------------------------------------------------------------------- 1 | # spacemacs.d 2 | Simple spacemacs configuration. 3 | 4 | git clone git@github.com:gs/spacemacs.d.git ~/.spacemacs.d 5 | 6 | remove `.spacemacs` file if you have it. 7 | -------------------------------------------------------------------------------- /init.el: -------------------------------------------------------------------------------- 1 | ;; -*- mode: emacs-lisp; lexical-binding: t -*- 2 | ;; This file is loaded by Spacemacs at startup. 3 | ;; It must be stored in your home directory. 4 | 5 | (defun dotspacemacs/layers () 6 | "Layer configuration: 7 | This function should only modify configuration layer settings." 8 | (setq-default 9 | ;; Base distribution to use. This is a layer contained in the directory 10 | ;; `+distribution'. For now available distributions are `spacemacs-base' 11 | ;; or `spacemacs'. (default 'spacemacs) 12 | dotspacemacs-distribution 'spacemacs 13 | 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 | 25 | ;; If non-nil then Spacemacs will ask for confirmation before installing 26 | ;; a layer lazily. (default t) 27 | dotspacemacs-ask-for-lazy-installation t 28 | 29 | ;; List of additional paths where to look for configuration layers. 30 | ;; Paths must have a trailing slash (i.e. `~/.mycontribs/') 31 | dotspacemacs-configuration-layer-path '() 32 | 33 | ;; List of configuration layers to load. 34 | dotspacemacs-configuration-layers 35 | '(html 36 | ;; ---------------------------------------------------------------- 37 | ;; Example of useful layers you may want to use right away. 38 | ;; Uncomment some layer names and press `SPC f e R' (Vim style) or 39 | ;; `M-m f e R' (Emacs style) to install them. 40 | ;; ---------------------------------------------------------------- 41 | (auto-completion :variables 42 | spacemacs-default-company-backends '(company-tabnine company-lsp)) 43 | better-defaults 44 | emacs-lisp 45 | 46 | (git :variables 47 | git-magit-status-fullscreen t 48 | magit-diff-refine-hunk t 49 | git-enable-magit-todos-plugin t) 50 | helm 51 | ;; lsp 52 | ruby 53 | ruby-on-rails 54 | ;; markdown 55 | multiple-cursors 56 | ;; org 57 | (shell :variables 58 | shell-default-height 30 59 | shell-default-position 'bottom) 60 | ;; spell-checking 61 | ;; syntax-checking 62 | ;; version-control 63 | javascript 64 | yaml 65 | python 66 | clojure 67 | treemacs) 68 | 69 | 70 | ;; List of additional packages that will be installed without being wrapped 71 | ;; in a layer (generally the packages are installed only and should still be 72 | ;; loaded using load/require/use-package in the user-config section below in 73 | ;; this file). If you need some configuration for these packages, then 74 | ;; consider creating a layer. You can also put the configuration in 75 | ;; `dotspacemacs/user-config'. To use a local version of a package, use the 76 | ;; `:location' property: '(your-package :location "~/path/to/your-package/") 77 | ;; Also include the dependencies as they will not be resolved automatically. 78 | dotspacemacs-additional-packages '( 79 | company-tabnine) 80 | 81 | ;; A list of packages that cannot be updated. 82 | dotspacemacs-frozen-packages '() 83 | 84 | ;; A list of packages that will not be installed and loaded. 85 | dotspacemacs-excluded-packages '() 86 | 87 | ;; Defines the behaviour of Spacemacs when installing packages. 88 | ;; Possible values are `used-only', `used-but-keep-unused' and `all'. 89 | ;; `used-only' installs only explicitly used packages and deletes any unused 90 | ;; packages as well as their unused dependencies. `used-but-keep-unused' 91 | ;; installs only the used packages but won't delete unused ones. `all' 92 | ;; installs *all* packages supported by Spacemacs and never uninstalls them. 93 | ;; (default is `used-only') 94 | dotspacemacs-install-packages 'used-only)) 95 | 96 | (defun dotspacemacs/init () 97 | "Initialization: 98 | This function is called at the very beginning of Spacemacs startup, 99 | before layer configuration. 100 | It should only modify the values of Spacemacs settings." 101 | ;; This setq-default sexp is an exhaustive list of all the supported 102 | ;; spacemacs settings. 103 | (setq-default 104 | ;; If non-nil then enable support for the portable dumper. You'll need to 105 | ;; compile Emacs 27 from source following the instructions in file 106 | ;; EXPERIMENTAL.org at to root of the git repository. 107 | ;; 108 | ;; WARNING: pdumper does not work with Native Compilation, so it's disabled 109 | ;; regardless of the following setting when native compilation is in effect. 110 | ;; 111 | ;; (default nil) 112 | dotspacemacs-enable-emacs-pdumper nil 113 | 114 | ;; Name of executable file pointing to emacs 27+. This executable must be 115 | ;; in your PATH. 116 | ;; (default "emacs") 117 | dotspacemacs-emacs-pdumper-executable-file "emacs" 118 | 119 | ;; Name of the Spacemacs dump file. This is the file will be created by the 120 | ;; portable dumper in the cache directory under dumps sub-directory. 121 | ;; To load it when starting Emacs add the parameter `--dump-file' 122 | ;; when invoking Emacs 27.1 executable on the command line, for instance: 123 | ;; ./emacs --dump-file=$HOME/.emacs.d/.cache/dumps/spacemacs-27.1.pdmp 124 | ;; (default (format "spacemacs-%s.pdmp" emacs-version)) 125 | dotspacemacs-emacs-dumper-dump-file (format "spacemacs-%s.pdmp" emacs-version) 126 | 127 | ;; If non-nil ELPA repositories are contacted via HTTPS whenever it's 128 | ;; possible. Set it to nil if you have no way to use HTTPS in your 129 | ;; environment, otherwise it is strongly recommended to let it set to t. 130 | ;; This variable has no effect if Emacs is launched with the parameter 131 | ;; `--insecure' which forces the value of this variable to nil. 132 | ;; (default t) 133 | dotspacemacs-elpa-https t 134 | 135 | ;; Maximum allowed time in seconds to contact an ELPA repository. 136 | ;; (default 5) 137 | dotspacemacs-elpa-timeout 5 138 | 139 | ;; Set `gc-cons-threshold' and `gc-cons-percentage' when startup finishes. 140 | ;; This is an advanced option and should not be changed unless you suspect 141 | ;; performance issues due to garbage collection operations. 142 | ;; (default '(100000000 0.1)) 143 | dotspacemacs-gc-cons '(100000000 0.1) 144 | 145 | ;; Set `read-process-output-max' when startup finishes. 146 | ;; This defines how much data is read from a foreign process. 147 | ;; Setting this >= 1 MB should increase performance for lsp servers 148 | ;; in emacs 27. 149 | ;; (default (* 1024 1024)) 150 | dotspacemacs-read-process-output-max (* 1024 1024) 151 | 152 | ;; If non-nil then Spacelpa repository is the primary source to install 153 | ;; a locked version of packages. If nil then Spacemacs will install the 154 | ;; latest version of packages from MELPA. Spacelpa is currently in 155 | ;; experimental state please use only for testing purposes. 156 | ;; (default nil) 157 | dotspacemacs-use-spacelpa nil 158 | 159 | ;; If non-nil then verify the signature for downloaded Spacelpa archives. 160 | ;; (default t) 161 | dotspacemacs-verify-spacelpa-archives t 162 | 163 | ;; If non-nil then spacemacs will check for updates at startup 164 | ;; when the current branch is not `develop'. Note that checking for 165 | ;; new versions works via git commands, thus it calls GitHub services 166 | ;; whenever you start Emacs. (default nil) 167 | dotspacemacs-check-for-update nil 168 | 169 | ;; If non-nil, a form that evaluates to a package directory. For example, to 170 | ;; use different package directories for different Emacs versions, set this 171 | ;; to `emacs-version'. (default 'emacs-version) 172 | dotspacemacs-elpa-subdirectory 'emacs-version 173 | 174 | ;; One of `vim', `emacs' or `hybrid'. 175 | ;; `hybrid' is like `vim' except that `insert state' is replaced by the 176 | ;; `hybrid state' with `emacs' key bindings. The value can also be a list 177 | ;; with `:variables' keyword (similar to layers). Check the editing styles 178 | ;; section of the documentation for details on available variables. 179 | ;; (default 'vim) 180 | dotspacemacs-editing-style 'vim 181 | 182 | ;; If non-nil show the version string in the Spacemacs buffer. It will 183 | ;; appear as (spacemacs version)@(emacs version) 184 | ;; (default t) 185 | dotspacemacs-startup-buffer-show-version t 186 | 187 | ;; Specify the startup banner. Default value is `official', it displays 188 | ;; the official spacemacs logo. An integer value is the index of text 189 | ;; banner, `random' chooses a random text banner in `core/banners' 190 | ;; directory. A string value must be a path to an image format supported 191 | ;; by your Emacs build. 192 | ;; If the value is nil then no banner is displayed. (default 'official) 193 | dotspacemacs-startup-banner 'official 194 | 195 | ;; List of items to show in startup buffer or an association list of 196 | ;; the form `(list-type . list-size)`. If nil then it is disabled. 197 | ;; Possible values for list-type are: 198 | ;; `recents' `recents-by-project' `bookmarks' `projects' `agenda' `todos'. 199 | ;; List sizes may be nil, in which case 200 | ;; `spacemacs-buffer-startup-lists-length' takes effect. 201 | ;; The exceptional case is `recents-by-project', where list-type must be a 202 | ;; pair of numbers, e.g. `(recents-by-project . (7 . 5))', where the first 203 | ;; number is the project limit and the second the limit on the recent files 204 | ;; within a project. 205 | dotspacemacs-startup-lists '((recents . 5) 206 | (projects . 7)) 207 | 208 | ;; True if the home buffer should respond to resize events. (default t) 209 | dotspacemacs-startup-buffer-responsive t 210 | 211 | ;; Show numbers before the startup list lines. (default t) 212 | dotspacemacs-show-startup-list-numbers t 213 | 214 | ;; The minimum delay in seconds between number key presses. (default 0.4) 215 | dotspacemacs-startup-buffer-multi-digit-delay 0.4 216 | 217 | ;; If non-nil, show file icons for entries and headings on Spacemacs home buffer. 218 | ;; This has no effect in terminal or if "all-the-icons" package or the font 219 | ;; is not installed. (default nil) 220 | dotspacemacs-startup-buffer-show-icons nil 221 | 222 | ;; Default major mode for a new empty buffer. Possible values are mode 223 | ;; names such as `text-mode'; and `nil' to use Fundamental mode. 224 | ;; (default `text-mode') 225 | dotspacemacs-new-empty-buffer-major-mode 'text-mode 226 | 227 | ;; Default major mode of the scratch buffer (default `text-mode') 228 | dotspacemacs-scratch-mode 'text-mode 229 | 230 | ;; If non-nil, *scratch* buffer will be persistent. Things you write down in 231 | ;; *scratch* buffer will be saved and restored automatically. 232 | dotspacemacs-scratch-buffer-persistent nil 233 | 234 | ;; If non-nil, `kill-buffer' on *scratch* buffer 235 | ;; will bury it instead of killing. 236 | dotspacemacs-scratch-buffer-unkillable nil 237 | 238 | ;; Initial message in the scratch buffer, such as "Welcome to Spacemacs!" 239 | ;; (default nil) 240 | dotspacemacs-initial-scratch-message nil 241 | 242 | ;; List of themes, the first of the list is loaded when spacemacs starts. 243 | ;; Press `SPC T n' to cycle to the next theme in the list (works great 244 | ;; with 2 themes variants, one dark and one light) 245 | dotspacemacs-themes '(ir-black 246 | spacemacs-dark 247 | spacemacs-light) 248 | 249 | ;; Set the theme for the Spaceline. Supported themes are `spacemacs', 250 | ;; `all-the-icons', `custom', `doom', `vim-powerline' and `vanilla'. The 251 | ;; first three are spaceline themes. `doom' is the doom-emacs mode-line. 252 | ;; `vanilla' is default Emacs mode-line. `custom' is a user defined themes, 253 | ;; refer to the DOCUMENTATION.org for more info on how to create your own 254 | ;; spaceline theme. Value can be a symbol or list with additional properties. 255 | ;; (default '(spacemacs :separator wave :separator-scale 1.5)) 256 | dotspacemacs-mode-line-theme '(spacemacs :separator wave :separator-scale 1.5) 257 | 258 | ;; If non-nil the cursor color matches the state color in GUI Emacs. 259 | ;; (default t) 260 | dotspacemacs-colorize-cursor-according-to-state t 261 | 262 | ;; Default font or prioritized list of fonts. The `:size' can be specified as 263 | ;; a non-negative integer (pixel size), or a floating-point (point size). 264 | ;; Point size is recommended, because it's device independent. (default 10.0) 265 | dotspacemacs-default-font '("Source Code Pro" 266 | :size 10.0 267 | :weight normal 268 | :width normal) 269 | 270 | ;; The leader key (default "SPC") 271 | dotspacemacs-leader-key "SPC" 272 | 273 | ;; The key used for Emacs commands `M-x' (after pressing on the leader key). 274 | ;; (default "SPC") 275 | dotspacemacs-emacs-command-key "SPC" 276 | 277 | ;; The key used for Vim Ex commands (default ":") 278 | dotspacemacs-ex-command-key ";" 279 | 280 | ;; The leader key accessible in `emacs state' and `insert state' 281 | ;; (default "M-m") 282 | dotspacemacs-emacs-leader-key "M-m" 283 | 284 | ;; Major mode leader key is a shortcut key which is the equivalent of 285 | ;; pressing ` m`. Set it to `nil` to disable it. (default ",") 286 | dotspacemacs-major-mode-leader-key "," 287 | 288 | ;; Major mode leader key accessible in `emacs state' and `insert state'. 289 | ;; (default "C-M-m" for terminal mode, "" for GUI mode). 290 | ;; Thus M-RET should work as leader key in both GUI and terminal modes. 291 | ;; C-M-m also should work in terminal mode, but not in GUI mode. 292 | dotspacemacs-major-mode-emacs-leader-key (if window-system "" "C-M-m") 293 | 294 | ;; These variables control whether separate commands are bound in the GUI to 295 | ;; the key pairs `C-i', `TAB' and `C-m', `RET'. 296 | ;; Setting it to a non-nil value, allows for separate commands under `C-i' 297 | ;; and TAB or `C-m' and `RET'. 298 | ;; In the terminal, these pairs are generally indistinguishable, so this only 299 | ;; works in the GUI. (default nil) 300 | dotspacemacs-distinguish-gui-tab nil 301 | 302 | ;; Name of the default layout (default "Default") 303 | dotspacemacs-default-layout-name "Default" 304 | 305 | ;; If non-nil the default layout name is displayed in the mode-line. 306 | ;; (default nil) 307 | dotspacemacs-display-default-layout nil 308 | 309 | ;; If non-nil then the last auto saved layouts are resumed automatically upon 310 | ;; start. (default nil) 311 | dotspacemacs-auto-resume-layouts nil 312 | 313 | ;; If non-nil, auto-generate layout name when creating new layouts. Only has 314 | ;; effect when using the "jump to layout by number" commands. (default nil) 315 | dotspacemacs-auto-generate-layout-names nil 316 | 317 | ;; Size (in MB) above which spacemacs will prompt to open the large file 318 | ;; literally to avoid performance issues. Opening a file literally means that 319 | ;; no major mode or minor modes are active. (default is 1) 320 | dotspacemacs-large-file-size 1 321 | 322 | ;; Location where to auto-save files. Possible values are `original' to 323 | ;; auto-save the file in-place, `cache' to auto-save the file to another 324 | ;; file stored in the cache directory and `nil' to disable auto-saving. 325 | ;; (default 'cache) 326 | dotspacemacs-auto-save-file-location 'cache 327 | 328 | ;; Maximum number of rollback slots to keep in the cache. (default 5) 329 | dotspacemacs-max-rollback-slots 5 330 | 331 | ;; If non-nil, the paste transient-state is enabled. While enabled, after you 332 | ;; paste something, pressing `C-j' and `C-k' several times cycles through the 333 | ;; elements in the `kill-ring'. (default nil) 334 | dotspacemacs-enable-paste-transient-state nil 335 | 336 | ;; Which-key delay in seconds. The which-key buffer is the popup listing 337 | ;; the commands bound to the current keystroke sequence. (default 0.4) 338 | dotspacemacs-which-key-delay 0.4 339 | 340 | ;; Which-key frame position. Possible values are `right', `bottom' and 341 | ;; `right-then-bottom'. right-then-bottom tries to display the frame to the 342 | ;; right; if there is insufficient space it displays it at the bottom. 343 | ;; (default 'bottom) 344 | dotspacemacs-which-key-position 'bottom 345 | 346 | ;; Control where `switch-to-buffer' displays the buffer. If nil, 347 | ;; `switch-to-buffer' displays the buffer in the current window even if 348 | ;; another same-purpose window is available. If non-nil, `switch-to-buffer' 349 | ;; displays the buffer in a same-purpose window even if the buffer can be 350 | ;; displayed in the current window. (default nil) 351 | dotspacemacs-switch-to-buffer-prefers-purpose nil 352 | 353 | ;; If non-nil a progress bar is displayed when spacemacs is loading. This 354 | ;; may increase the boot time on some systems and emacs builds, set it to 355 | ;; nil to boost the loading time. (default t) 356 | dotspacemacs-loading-progress-bar t 357 | 358 | ;; If non-nil the frame is fullscreen when Emacs starts up. (default nil) 359 | ;; (Emacs 24.4+ only) 360 | dotspacemacs-fullscreen-at-startup nil 361 | 362 | ;; If non-nil `spacemacs/toggle-fullscreen' will not use native fullscreen. 363 | ;; Use to disable fullscreen animations in OSX. (default nil) 364 | dotspacemacs-fullscreen-use-non-native nil 365 | 366 | ;; If non-nil the frame is maximized when Emacs starts up. 367 | ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil. 368 | ;; (default nil) (Emacs 24.4+ only) 369 | dotspacemacs-maximized-at-startup nil 370 | 371 | ;; If non-nil the frame is undecorated when Emacs starts up. Combine this 372 | ;; variable with `dotspacemacs-maximized-at-startup' in OSX to obtain 373 | ;; borderless fullscreen. (default nil) 374 | dotspacemacs-undecorated-at-startup nil 375 | 376 | ;; A value from the range (0..100), in increasing opacity, which describes 377 | ;; the transparency level of a frame when it's active or selected. 378 | ;; Transparency can be toggled through `toggle-transparency'. (default 90) 379 | dotspacemacs-active-transparency 90 380 | 381 | ;; A value from the range (0..100), in increasing opacity, which describes 382 | ;; the transparency level of a frame when it's inactive or deselected. 383 | ;; Transparency can be toggled through `toggle-transparency'. (default 90) 384 | dotspacemacs-inactive-transparency 90 385 | 386 | ;; If non-nil show the titles of transient states. (default t) 387 | dotspacemacs-show-transient-state-title t 388 | 389 | ;; If non-nil show the color guide hint for transient state keys. (default t) 390 | dotspacemacs-show-transient-state-color-guide t 391 | 392 | ;; If non-nil unicode symbols are displayed in the mode line. 393 | ;; If you use Emacs as a daemon and wants unicode characters only in GUI set 394 | ;; the value to quoted `display-graphic-p'. (default t) 395 | dotspacemacs-mode-line-unicode-symbols t 396 | 397 | ;; If non-nil smooth scrolling (native-scrolling) is enabled. Smooth 398 | ;; scrolling overrides the default behavior of Emacs which recenters point 399 | ;; when it reaches the top or bottom of the screen. (default t) 400 | dotspacemacs-smooth-scrolling t 401 | 402 | ;; Show the scroll bar while scrolling. The auto hide time can be configured 403 | ;; by setting this variable to a number. (default t) 404 | dotspacemacs-scroll-bar-while-scrolling t 405 | 406 | ;; Control line numbers activation. 407 | ;; If set to `t', `relative' or `visual' then line numbers are enabled in all 408 | ;; `prog-mode' and `text-mode' derivatives. If set to `relative', line 409 | ;; numbers are relative. If set to `visual', line numbers are also relative, 410 | ;; but only visual lines are counted. For example, folded lines will not be 411 | ;; counted and wrapped lines are counted as multiple lines. 412 | ;; This variable can also be set to a property list for finer control: 413 | ;; '(:relative nil 414 | ;; :visual nil 415 | ;; :disabled-for-modes dired-mode 416 | ;; doc-view-mode 417 | ;; markdown-mode 418 | ;; org-mode 419 | ;; pdf-view-mode 420 | ;; text-mode 421 | ;; :size-limit-kb 1000) 422 | ;; When used in a plist, `visual' takes precedence over `relative'. 423 | ;; (default nil) 424 | dotspacemacs-line-numbers nil 425 | 426 | ;; Code folding method. Possible values are `evil', `origami' and `vimish'. 427 | ;; (default 'evil) 428 | dotspacemacs-folding-method 'evil 429 | 430 | ;; If non-nil and `dotspacemacs-activate-smartparens-mode' is also non-nil, 431 | ;; `smartparens-strict-mode' will be enabled in programming modes. 432 | ;; (default nil) 433 | dotspacemacs-smartparens-strict-mode nil 434 | 435 | ;; If non-nil smartparens-mode will be enabled in programming modes. 436 | ;; (default t) 437 | dotspacemacs-activate-smartparens-mode t 438 | 439 | ;; If non-nil pressing the closing parenthesis `)' key in insert mode passes 440 | ;; over any automatically added closing parenthesis, bracket, quote, etc... 441 | ;; This can be temporary disabled by pressing `C-q' before `)'. (default nil) 442 | dotspacemacs-smart-closing-parenthesis nil 443 | 444 | ;; Select a scope to highlight delimiters. Possible values are `any', 445 | ;; `current', `all' or `nil'. Default is `all' (highlight any scope and 446 | ;; emphasis the current one). (default 'all) 447 | dotspacemacs-highlight-delimiters 'all 448 | 449 | ;; If non-nil, start an Emacs server if one is not already running. 450 | ;; (default nil) 451 | dotspacemacs-enable-server nil 452 | 453 | ;; Set the emacs server socket location. 454 | ;; If nil, uses whatever the Emacs default is, otherwise a directory path 455 | ;; like \"~/.emacs.d/server\". It has no effect if 456 | ;; `dotspacemacs-enable-server' is nil. 457 | ;; (default nil) 458 | dotspacemacs-server-socket-dir nil 459 | 460 | ;; If non-nil, advise quit functions to keep server open when quitting. 461 | ;; (default nil) 462 | dotspacemacs-persistent-server nil 463 | 464 | ;; List of search tool executable names. Spacemacs uses the first installed 465 | ;; tool of the list. Supported tools are `rg', `ag', `pt', `ack' and `grep'. 466 | ;; (default '("rg" "ag" "pt" "ack" "grep")) 467 | dotspacemacs-search-tools '("rg" "ag" "pt" "ack" "grep") 468 | 469 | ;; Format specification for setting the frame title. 470 | ;; %a - the `abbreviated-file-name', or `buffer-name' 471 | ;; %t - `projectile-project-name' 472 | ;; %I - `invocation-name' 473 | ;; %S - `system-name' 474 | ;; %U - contents of $USER 475 | ;; %b - buffer name 476 | ;; %f - visited file name 477 | ;; %F - frame name 478 | ;; %s - process status 479 | ;; %p - percent of buffer above top of window, or Top, Bot or All 480 | ;; %P - percent of buffer above bottom of window, perhaps plus Top, or Bot or All 481 | ;; %m - mode name 482 | ;; %n - Narrow if appropriate 483 | ;; %z - mnemonics of buffer, terminal, and keyboard coding systems 484 | ;; %Z - like %z, but including the end-of-line format 485 | ;; If nil then Spacemacs uses default `frame-title-format' to avoid 486 | ;; performance issues, instead of calculating the frame title by 487 | ;; `spacemacs/title-prepare' all the time. 488 | ;; (default "%I@%S") 489 | dotspacemacs-frame-title-format "%I@%S" 490 | 491 | ;; Format specification for setting the icon title format 492 | ;; (default nil - same as frame-title-format) 493 | dotspacemacs-icon-title-format nil 494 | 495 | ;; Show trailing whitespace (default t) 496 | dotspacemacs-show-trailing-whitespace t 497 | 498 | ;; Delete whitespace while saving buffer. Possible values are `all' 499 | ;; to aggressively delete empty line and long sequences of whitespace, 500 | ;; `trailing' to delete only the whitespace at end of lines, `changed' to 501 | ;; delete only whitespace for changed lines or `nil' to disable cleanup. 502 | ;; (default nil) 503 | dotspacemacs-whitespace-cleanup nil 504 | 505 | ;; If non-nil activate `clean-aindent-mode' which tries to correct 506 | ;; virtual indentation of simple modes. This can interfere with mode specific 507 | ;; indent handling like has been reported for `go-mode'. 508 | ;; If it does deactivate it here. 509 | ;; (default t) 510 | dotspacemacs-use-clean-aindent-mode t 511 | 512 | ;; Accept SPC as y for prompts if non-nil. (default nil) 513 | dotspacemacs-use-SPC-as-y nil 514 | 515 | ;; If non-nil shift your number row to match the entered keyboard layout 516 | ;; (only in insert state). Currently supported keyboard layouts are: 517 | ;; `qwerty-us', `qwertz-de' and `querty-ca-fr'. 518 | ;; New layouts can be added in `spacemacs-editing' layer. 519 | ;; (default nil) 520 | dotspacemacs-swap-number-row nil 521 | 522 | ;; Either nil or a number of seconds. If non-nil zone out after the specified 523 | ;; number of seconds. (default nil) 524 | dotspacemacs-zone-out-when-idle nil 525 | 526 | ;; Run `spacemacs/prettify-org-buffer' when 527 | ;; visiting README.org files of Spacemacs. 528 | ;; (default nil) 529 | dotspacemacs-pretty-docs nil 530 | 531 | ;; If nil the home buffer shows the full path of agenda items 532 | ;; and todos. If non-nil only the file name is shown. 533 | dotspacemacs-home-shorten-agenda-source nil 534 | 535 | ;; If non-nil then byte-compile some of Spacemacs files. 536 | dotspacemacs-byte-compile nil)) 537 | 538 | (defun dotspacemacs/user-env () 539 | "Environment variables setup. 540 | This function defines the environment variables for your Emacs session. By 541 | default it calls `spacemacs/load-spacemacs-env' which loads the environment 542 | variables declared in `~/.spacemacs.env' or `~/.spacemacs.d/.spacemacs.env'. 543 | See the header of this file for more information." 544 | (spacemacs/load-spacemacs-env) 545 | ) 546 | 547 | (defun dotspacemacs/user-init () 548 | "Initialization for user code: 549 | This function is called immediately after `dotspacemacs/init', before layer 550 | configuration. 551 | It is mostly for variables that should be set before packages are loaded. 552 | If you are unsure, try setting them in `dotspacemacs/user-config' first." 553 | ) 554 | 555 | 556 | (defun dotspacemacs/user-load () 557 | "Library to load while dumping. 558 | This function is called only while dumping Spacemacs configuration. You can 559 | `require' or `load' the libraries of your choice that will be included in the 560 | dump." 561 | ) 562 | 563 | 564 | (defun dotspacemacs/user-config () 565 | "Configuration for user code: 566 | This function is called at the very end of Spacemacs startup, after layer 567 | configuration. 568 | Put your configuration code here, except for variables that should be set 569 | before packages are loaded." 570 | ) 571 | 572 | 573 | ;; Do not write anything past this comment. This is where Emacs will 574 | ;; auto-generate custom variable definitions. 575 | (defun dotspacemacs/emacs-custom-settings () 576 | "Emacs custom settings. 577 | This is an auto-generated function, do not modify its content directly, use 578 | Emacs customize menu instead. 579 | This function is called at the very end of Spacemacs initialization." 580 | (custom-set-variables 581 | ;; custom-set-variables was added by Custom. 582 | ;; If you edit it by hand, you could mess it up, so be careful. 583 | ;; Your init file should contain only one such instance. 584 | ;; If there is more than one, they won't work right. 585 | '(evil-want-Y-yank-to-eol nil) 586 | '(package-selected-packages 587 | '(web-mode tagedit slim-mode scss-mode sass-mode pug-mode impatient-mode htmlize helm-css-scss haml-mode emmet-mode counsel-css company-web web-completion-data add-node-modules-path company-tabnine yapfify stickyfunc-enhance sphinx-doc pytest pyenv-mode pydoc py-isort poetry pippel pipenv pyvenv pip-requirements nose lsp-python-ms lsp-pyright live-py-mode importmagic epc ctable concurrent deferred helm-pydoc helm-gtags helm-cscope xcscope ggtags dap-mode bui cython-mode counsel-gtags counsel swiper ivy company-anaconda blacken anaconda-mode pythonic yasnippet-snippets ws-butler writeroom-mode winum which-key volatile-highlights vi-tilde-fringe uuidgen use-package unfill undo-tree treemacs-projectile treemacs-persp treemacs-magit treemacs-icons-dired treemacs-evil toc-org symon symbol-overlay string-inflection string-edit spaceline-all-the-icons smeargle restart-emacs request rainbow-delimiters quickrun popwin pcre2el password-generator paradox overseer org-superstar open-junk-file nameless mwim multi-line macrostep lsp-ui lsp-treemacs lsp-origami lorem-ipsum link-hint inspector info+ indent-guide hybrid-mode hungry-delete hl-todo highlight-parentheses highlight-numbers highlight-indentation hide-comnt helm-xref helm-themes helm-swoop helm-purpose helm-projectile helm-org helm-mode-manager helm-make helm-lsp helm-ls-git helm-git-grep helm-flx helm-descbinds helm-company helm-cider helm-c-yasnippet helm-ag google-translate golden-ratio gitignore-templates git-timemachine git-modes git-messenger git-link fuzzy forge font-lock+ flycheck-pos-tip flycheck-package flycheck-elsa flx-ido fancy-battery eyebrowse expand-region evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-textobj-line evil-terminal-cursor-changer evil-surround evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state evil-lion evil-indent-plus evil-iedit-state evil-goggles evil-exchange evil-escape evil-ediff evil-easymotion evil-collection evil-cleverparens evil-args evil-anzu emr elisp-slime-nav elisp-def editorconfig dumb-jump drag-stuff dotenv-mode dired-quick-sort diminish devdocs define-word column-enforce-mode clojure-snippets clean-aindent-mode cider-eval-sexp-fu centered-cursor-mode auto-yasnippet auto-highlight-symbol auto-compile aggressive-indent ace-link ace-jump-helm-line ac-ispell))) 588 | (custom-set-faces 589 | ;; custom-set-faces was added by Custom. 590 | ;; If you edit it by hand, you could mess it up, so be careful. 591 | ;; Your init file should contain only one such instance. 592 | ;; If there is more than one, they won't work right. 593 | '(highlight-parentheses-highlight ((nil (:weight ultra-bold))) t)) 594 | ) 595 | --------------------------------------------------------------------------------