Created
February 27, 2017 15:45
-
-
Save jkachmar/12a503aa0614d02a4bdb73c01b99cb47 to your computer and use it in GitHub Desktop.
Spacemacs Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration. | |
| You should not put any user code in this function besides modifying the variable | |
| values." | |
| (setq-default | |
| dotspacemacs-distribution 'spacemacs | |
| dotspacemacs-enable-lazy-installation 'unused | |
| dotspacemacs-ask-for-lazy-installation t | |
| dotspacemacs-configuration-layer-path '() | |
| dotspacemacs-configuration-layers | |
| '( | |
| auto-completion | |
| emacs-lisp | |
| git | |
| helm | |
| markdown | |
| osx | |
| syntax-checking | |
| version-control | |
| (haskell :variables | |
| haskell-completion-backend 'ghci) | |
| javascript | |
| purescript | |
| python | |
| yaml | |
| ) | |
| dotspacemacs-additional-packages '(badwolf-theme gruvbox-theme) | |
| dotspacemacs-frozen-packages '() | |
| dotspacemacs-excluded-packages '() | |
| dotspacemacs-install-packages 'used-only)) | |
| (defun dotspacemacs/init () | |
| "Initialization function. | |
| This function is called at the very startup of Spacemacs initialization | |
| before layers configuration. | |
| You should not put any user code in there besides modifying the variable | |
| values." | |
| (setq-default | |
| dotspacemacs-elpa-https t | |
| dotspacemacs-elpa-timeout 5 | |
| dotspacemacs-check-for-update nil | |
| dotspacemacs-elpa-subdirectory nil | |
| dotspacemacs-editing-style 'vim | |
| dotspacemacs-verbose-loading nil | |
| dotspacemacs-startup-banner 'official | |
| dotspacemacs-startup-lists '((recents . 5) | |
| (projects . 7)) | |
| dotspacemacs-startup-buffer-responsive t | |
| dotspacemacs-scratch-mode 'text-mode | |
| dotspacemacs-themes '(badwolf | |
| gruvbox | |
| spacemacs-dark) | |
| dotspacemacs-colorize-cursor-according-to-state t | |
| dotspacemacs-default-font '("Source Code Pro" | |
| :size 13 | |
| :weight normal | |
| :width normal | |
| :powerline-scale 1.1) | |
| dotspacemacs-leader-key "SPC" | |
| dotspacemacs-emacs-command-key "SPC" | |
| dotspacemacs-ex-command-key ":" | |
| dotspacemacs-emacs-leader-key "M-m" | |
| dotspacemacs-major-mode-leader-key "," | |
| dotspacemacs-major-mode-emacs-leader-key "C-M-m" | |
| dotspacemacs-distinguish-gui-tab nil | |
| dotspacemacs-remap-Y-to-y$ nil | |
| dotspacemacs-retain-visual-state-on-shift t | |
| dotspacemacs-visual-line-move-text nil | |
| dotspacemacs-ex-substitute-global nil | |
| dotspacemacs-default-layout-name "Default" | |
| dotspacemacs-display-default-layout nil | |
| dotspacemacs-auto-resume-layouts nil | |
| dotspacemacs-large-file-size 1 ;; MB | |
| dotspacemacs-auto-save-file-location 'cache | |
| dotspacemacs-max-rollback-slots 5 | |
| dotspacemacs-helm-resize nil | |
| dotspacemacs-helm-no-header nil | |
| dotspacemacs-helm-position 'bottom | |
| dotspacemacs-helm-use-fuzzy 'always | |
| dotspacemacs-enable-paste-transient-state nil | |
| dotspacemacs-which-key-delay 0.4 | |
| dotspacemacs-which-key-position 'bottom | |
| dotspacemacs-loading-progress-bar t | |
| dotspacemacs-fullscreen-at-startup nil | |
| dotspacemacs-fullscreen-use-non-native nil | |
| dotspacemacs-maximized-at-startup nil | |
| dotspacemacs-active-transparency 90 | |
| dotspacemacs-inactive-transparency 90 | |
| dotspacemacs-show-transient-state-title t | |
| dotspacemacs-show-transient-state-color-guide t | |
| dotspacemacs-mode-line-unicode-symbols t | |
| dotspacemacs-smooth-scrolling t | |
| dotspacemacs-line-numbers t | |
| dotspacemacs-folding-method 'evil | |
| dotspacemacs-smartparens-strict-mode nil | |
| dotspacemacs-smart-closing-parenthesis nil | |
| dotspacemacs-highlight-delimiters 'all | |
| dotspacemacs-persistent-server nil | |
| dotspacemacs-search-tools '("ag" "pt" "ack" "grep") | |
| dotspacemacs-default-package-repository nil | |
| dotspacemacs-whitespace-cleanup nil | |
| )) | |
| ;; Helper to add project-specific node_modules to the PATH | |
| (defun add-node-modules-path () | |
| (let* ((root (locate-dominating-file | |
| (or (buffer-file-name) default-directory) | |
| "node_modules")) | |
| (path (and root | |
| (expand-file-name "node_modules/.bin/" root)))) | |
| (if root | |
| (progn | |
| (make-local-variable 'exec-path) | |
| (add-to-list 'exec-path path) | |
| (message "added node_modules to exec-path")) | |
| (message "node_modules not found")))) | |
| (defun dotspacemacs/user-init ()) | |
| (defun dotspacemacs/user-config () | |
| (eval-after-load 'js2-mode | |
| '(add-hook 'js2-mode-hook #'add-node-modules-path)) | |
| (setq flycheck-checkers '(javascript-eslint)) | |
| (setq js-indent-level 2) | |
| (setq css-indent-offset 2) | |
| (setq web-mode-markup-indent-offset 2) | |
| (setq web-mode-css-indent-offset 2) | |
| (setq web-mode-code-indent-offset 2) | |
| (setq css-mode-css-indent-offset 2) | |
| ) | |
| ;; Do not write anything past this comment. This is where Emacs will | |
| ;; auto-generate custom variable definitions. | |
| (custom-set-variables | |
| ;; custom-set-variables was added by Custom. | |
| ;; If you edit it by hand, you could mess it up, so be careful. | |
| ;; Your init file should contain only one such instance. | |
| ;; If there is more than one, they won't work right. | |
| '(ansi-color-names-vector | |
| ["#d2ceda" "#f2241f" "#67b11d" "#b1951d" "#3a81c3" "#a31db1" "#21b8c7" "#655370"]) | |
| '(evil-want-Y-yank-to-eol nil) | |
| '(package-selected-packages | |
| (quote | |
| (web-beautify livid-mode skewer-mode simple-httpd json-mode json-snatcher json-reformat js2-refactor multiple-cursors js2-mode js-doc company-tern tern coffee-mode yaml-mode psci purescript-mode psc-ide dash-functional yapfify pyvenv pytest pyenv-mode py-isort pip-requirements live-py-mode hy-mode helm-pydoc cython-mode company-anaconda anaconda-mode pythonic gruvbox-theme autothemer badwolf-theme smeargle reveal-in-osx-finder pbcopy osx-trash osx-dictionary orgit org mmm-mode markdown-toc markdown-mode magit-gitflow launchctl intero hlint-refactor hindent helm-hoogle helm-gitignore helm-company helm-c-yasnippet haskell-snippets gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link git-gutter-fringe+ git-gutter-fringe fringe-helper git-gutter+ git-gutter gh-md flycheck-pos-tip pos-tip flycheck-haskell flycheck evil-magit magit magit-popup git-commit with-editor diff-hl company-statistics company-ghci company-ghc ghc haskell-mode company-cabal company cmm-mode auto-yasnippet yasnippet ac-ispell auto-complete ws-butler window-numbering which-key volatile-highlights vi-tilde-fringe uuidgen use-package toc-org spaceline powerline 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 info+ indent-guide ido-vertical-mode hydra hungry-delete hl-todo highlight-parentheses highlight-numbers parent-mode highlight-indentation hide-comnt help-fns+ helm-themes helm-swoop helm-projectile helm-mode-manager helm-make projectile pkg-info epl helm-flx helm-descbinds helm-ag 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 f s diminish define-word column-enforce-mode clean-aindent-mode bind-map bind-key auto-highlight-symbol auto-compile packed dash aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line helm avy helm-core popup async quelpa package-build spacemacs-theme)))) | |
| (custom-set-faces | |
| ;; custom-set-faces was added by Custom. | |
| ;; If you edit it by hand, you could mess it up, so be careful. | |
| ;; Your init file should contain only one such instance. | |
| ;; If there is more than one, they won't work right. | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment