Guest User

.spacemacs

a guest
Sep 29th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 17.72 KB | None | 0 0
  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.    ;; List of additional paths where to look for configuration layers.
  15.    ;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
  16.    dotspacemacs-configuration-layer-path '()
  17.    ;; List of configuration layers to load. If it is the symbol `all' instead
  18.    ;; of a list then all discovered layers will be installed.
  19.    dotspacemacs-configuration-layers
  20.    '(
  21.      ;; ----------------------------------------------------------------
  22.      ;; Example of useful layers you may want to use right away.
  23.      ;; Uncomment some layer names and press <SPC f e R> (Vim style) or
  24.      ;; <M-m f e R> (Emacs style) to install them.
  25.      ;; ----------------------------------------------------------------
  26.      ;; better-defaults
  27.      auto-completion
  28.      bibtex
  29.      (c-c++ :variables
  30.             c-c++-default-mode-for-headers 'c++-mode
  31.             c-c++-enable-clang-support t)
  32.      (clojure :variables clojure-enable-fancify-symbols t)
  33.      emacs-lisp
  34.      git
  35.      (haskell :variables haskell-completion-backend 'intero)
  36.      html
  37.      ;; idris
  38.      ;; java
  39.      javascript
  40.      (latex :variables
  41.             latex-enable-folding t
  42.             latex-build-command "LaTeX")
  43.      markdown
  44.      (org :variables
  45.           org-enable-github-support t)
  46.      osx
  47.      purescript
  48.      python
  49.      ;; racket
  50.      ruby
  51.      ruby-on-rails
  52.      ;; scala
  53.      scheme
  54.      semantic
  55.      shell
  56.      ;; sml
  57.      spell-checking
  58.      syntax-checking
  59.      sql
  60.      version-control
  61.      yaml
  62.      )
  63.    ;; List of additional packages that will be installed without being
  64.    ;; wrapped in a layer. If you need some configuration for these
  65.    ;; packages, then consider creating a layer. You can also put the
  66.    ;; configuration in `dotspacemacs/user-config'.
  67.    dotspacemacs-additional-packages '()
  68.    ;; A list of packages and/or extensions that will not be install and loaded.
  69.    dotspacemacs-excluded-packages '()
  70.    ;; If non-nil spacemacs will delete any orphan packages, i.e. packages that
  71.    ;; are declared in a layer which is not a member of
  72.    ;; the list `dotspacemacs-configuration-layers'. (default t)
  73.    dotspacemacs-delete-orphan-packages t))
  74.  
  75. (defun dotspacemacs/init ()
  76.   "Initialization function.
  77. This function is called at the very startup of Spacemacs initialization
  78. before layers configuration.
  79. You should not put any user code in there besides modifying the variable
  80. values."
  81.   ;; This setq-default sexp is an exhaustive list of all the supported
  82.   ;; spacemacs settings.
  83.   (setq-default
  84.    ;; If non nil ELPA repositories are contacted via HTTPS whenever it's
  85.    ;; possible. Set it to nil if you have no way to use HTTPS in your
  86.    ;; environment, otherwise it is strongly recommended to let it set to t.
  87.    ;; This variable has no effect if Emacs is launched with the parameter
  88.    ;; `--insecure' which forces the value of this variable to nil.
  89.    ;; (default t)
  90.    dotspacemacs-elpa-https t
  91.    ;; Maximum allowed time in seconds to contact an ELPA repository.
  92.    dotspacemacs-elpa-timeout 5
  93.    ;; If non nil then spacemacs will check for updates at startup
  94.    ;; when the current branch is not `develop'. (default t)
  95.    dotspacemacs-check-for-update t
  96.    ;; One of `vim', `emacs' or `hybrid'. Evil is always enabled but if the
  97.    ;; variable is `emacs' then the `holy-mode' is enabled at startup. `hybrid'
  98.    ;; uses emacs key bindings for vim's insert mode, but otherwise leaves evil
  99.    ;; unchanged. (default 'vim)
  100.    dotspacemacs-editing-style 'vim
  101.    ;; If non nil output loading progress in `*Messages*' buffer. (default nil)
  102.    dotspacemacs-verbose-loading nil
  103.    ;; Specify the startup banner. Default value is `official', it displays
  104.    ;; the official spacemacs logo. An integer value is the index of text
  105.    ;; banner, `random' chooses a random text banner in `core/banners'
  106.    ;; directory. A string value must be a path to an image format supported
  107.    ;; by your Emacs build.
  108.    ;; If the value is nil then no banner is displayed. (default 'official)
  109.    dotspacemacs-startup-banner 'official
  110.    ;; List of items to show in the startup buffer. If nil it is disabled.
  111.    ;; Possible values are: `recents' `bookmarks' `projects'.
  112.    ;; (default '(recents projects))
  113.    dotspacemacs-startup-lists '(recents projects)
  114.    ;; Number of recent files to show in the startup buffer. Ignored if
  115.    ;; `dotspacemacs-startup-lists' doesn't include `recents'. (default 5)
  116.    dotspacemacs-startup-recent-list-size 5
  117.    ;; Default major mode of the scratch buffer (default `text-mode')
  118.    dotspacemacs-scratch-mode 'text-mode
  119.    ;; List of themes, the first of the list is loaded when spacemacs starts.
  120.    ;; Press <SPC> T n to cycle to the next theme in the list (works great
  121.    ;; with 2 themes variants, one dark and one light)
  122.    dotspacemacs-themes '(sanityinc-tomorrow-night
  123.                          spolsky
  124.                          solarized-dark
  125.                          solarized-light
  126.                          leuven)
  127.    ;; If non nil the cursor color matches the state color in GUI Emacs.
  128.    dotspacemacs-colorize-cursor-according-to-state t
  129.    ;; Default font. `powerline-scale' allows to quickly tweak the mode-line
  130.    ;; size to make separators look not too crappy.
  131.    dotspacemacs-default-font '("Droid Sans Mono for Powerline"
  132.                                :size 12
  133.                                :weight regular
  134.                                :width normal
  135.                                :powerline-scale 1)
  136.    ;; The leader key
  137.    dotspacemacs-leader-key "SPC"
  138.    ;; The leader key accessible in `emacs state' and `insert state'
  139.    ;; (default "M-m")
  140.    dotspacemacs-emacs-leader-key "M-m"
  141.    ;; Major mode leader key is a shortcut key which is the equivalent of
  142.    ;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",")
  143.    dotspacemacs-major-mode-leader-key ","
  144.    ;; Major mode leader key accessible in `emacs state' and `insert state'.
  145.    ;; (default "C-M-m)
  146.    dotspacemacs-major-mode-emacs-leader-key "C-M-m"
  147.    ;; These variables control whether separate commands are bound in the GUI to
  148.    ;; the key pairs C-i, TAB and C-m, RET.
  149.    ;; Setting it to a non-nil value, allows for separate commands under <C-i>
  150.    ;; and TAB or <C-m> and RET.
  151.    ;; In the terminal, these pairs are generally indistinguishable, so this only
  152.    ;; works in the GUI. (default nil)
  153.    dotspacemacs-distinguish-gui-tab nil
  154.    ;; (Not implemented) dotspacemacs-distinguish-gui-ret nil
  155.    ;; The command key used for Evil commands (ex-commands) and
  156.    ;; Emacs commands (M-x).
  157.    ;; By default the command key is `:' so ex-commands are executed like in Vim
  158.    ;; with `:' and Emacs commands are executed with `<leader> :'.
  159.    dotspacemacs-command-key ":"
  160.    ;; If non nil `Y' is remapped to `y$'. (default t)
  161.    dotspacemacs-remap-Y-to-y$ t
  162.    ;; Name of the default layout (default "Default")
  163.    dotspacemacs-default-layout-name "Default"
  164.    ;; If non nil the default layout name is displayed in the mode-line.
  165.    ;; (default nil)
  166.    dotspacemacs-display-default-layout nil
  167.    ;; If non nil then the last auto saved layouts are resume automatically upon
  168.    ;; start. (default nil)
  169.    dotspacemacs-auto-resume-layouts nil
  170.    ;; Location where to auto-save files. Possible values are `original' to
  171.    ;; auto-save the file in-place, `cache' to auto-save the file to another
  172.    ;; file stored in the cache directory and `nil' to disable auto-saving.
  173.    ;; (default 'cache)
  174.    dotspacemacs-auto-save-file-location 'cache
  175.    ;; Maximum number of rollback slots to keep in the cache. (default 5)
  176.    dotspacemacs-max-rollback-slots 5
  177.    ;; If non nil then `ido' replaces `helm' for some commands. For now only
  178.    ;; `find-files' (SPC f f), `find-spacemacs-file' (SPC f e s), and
  179.    ;; `find-contrib-file' (SPC f e c) are replaced. (default nil)
  180.    dotspacemacs-use-ido nil
  181.    ;; If non nil, `helm' will try to minimize the space it uses. (default nil)
  182.    dotspacemacs-helm-resize nil
  183.    ;; if non nil, the helm header is hidden when there is only one source.
  184.    ;; (default nil)
  185.    dotspacemacs-helm-no-header nil
  186.    ;; define the position to display `helm', options are `bottom', `top',
  187.    ;; `left', or `right'. (default 'bottom)
  188.    dotspacemacs-helm-position 'bottom
  189.    ;; If non nil the paste micro-state is enabled. When enabled pressing `p`
  190.    ;; several times cycle between the kill ring content. (default nil)
  191.    dotspacemacs-enable-paste-micro-state nil
  192.    ;; Which-key delay in seconds. The which-key buffer is the popup listing
  193.    ;; the commands bound to the current keystroke sequence. (default 0.4)
  194.    dotspacemacs-which-key-delay 0.4
  195.    ;; Which-key frame position. Possible values are `right', `bottom' and
  196.    ;; `right-then-bottom'. right-then-bottom tries to display the frame to the
  197.    ;; right; if there is insufficient space it displays it at the bottom.
  198.    ;; (default 'bottom)
  199.    dotspacemacs-which-key-position 'bottom
  200.    ;; If non nil a progress bar is displayed when spacemacs is loading. This
  201.    ;; may increase the boot time on some systems and emacs builds, set it to
  202.    ;; nil to boost the loading time. (default t)
  203.    dotspacemacs-loading-progress-bar t
  204.    ;; If non nil the frame is fullscreen when Emacs starts up. (default nil)
  205.    ;; (Emacs 24.4+ only)
  206.    dotspacemacs-fullscreen-at-startup nil
  207.    ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen.
  208.    ;; Use to disable fullscreen animations in OSX. (default nil)
  209.    dotspacemacs-fullscreen-use-non-native nil
  210.    ;; If non nil the frame is maximized when Emacs starts up.
  211.    ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.
  212.    ;; (default nil) (Emacs 24.4+ only)
  213.    dotspacemacs-maximized-at-startup nil
  214.    ;; A value from the range (0..100), in increasing opacity, which describes
  215.    ;; the transparency level of a frame when it's active or selected.
  216.    ;; Transparency can be toggled through `toggle-transparency'. (default 90)
  217.    dotspacemacs-active-transparency 90
  218.    ;; A value from the range (0..100), in increasing opacity, which describes
  219.    ;; the transparency level of a frame when it's inactive or deselected.
  220.    ;; Transparency can be toggled through `toggle-transparency'. (default 90)
  221.    dotspacemacs-inactive-transparency 90
  222.    ;; If non nil unicode symbols are displayed in the mode line. (default t)
  223.    dotspacemacs-mode-line-unicode-symbols t
  224.    ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth
  225.    ;; scrolling overrides the default behavior of Emacs which recenters the
  226.    ;; point when it reaches the top or bottom of the screen. (default t)
  227.    dotspacemacs-smooth-scrolling t
  228.    ;; If non nil line numbers are turned on in all `prog-mode' and `text-mode'
  229.    ;; derivatives. If set to `relative', also turns on relative line numbers.
  230.    ;; (default nil)
  231.    dotspacemacs-line-numbers nil
  232.    ;; If non-nil smartparens-strict-mode will be enabled in programming modes.
  233.    ;; (default nil)
  234.    dotspacemacs-smartparens-strict-mode nil
  235.    ;; Select a scope to highlight delimiters. Possible values are `any',
  236.    ;; `current', `all' or `nil'. Default is `all' (highlight any scope and
  237.    ;; emphasis the current one). (default 'all)
  238.    dotspacemacs-highlight-delimiters 'all
  239.    ;; If non nil advises quit functions to keep server open when quitting.
  240.    ;; (default nil)
  241.    dotspacemacs-persistent-server nil
  242.    ;; List of search tool executable names. Spacemacs uses the first installed
  243.    ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'.
  244.    ;; (default '("ag" "pt" "ack" "grep"))
  245.    dotspacemacs-search-tools '("ag" "pt" "ack" "grep")
  246.    ;; The default package repository used if no explicit repository has been
  247.    ;; specified with an installed package.
  248.    ;; Not used for now. (default nil)
  249.    dotspacemacs-default-package-repository nil
  250.    ;; Delete whitespace while saving buffer. Possible values are `all'
  251.    ;; to aggressively delete empty line and long sequences of whitespace,
  252.    ;; `trailing' to delete only the whitespace at end of lines, `changed'to
  253.    ;; delete only whitespace for changed lines or `nil' to disable cleanup.
  254.    ;; (default nil)
  255.    dotspacemacs-whitespace-cleanup nil
  256.    ))
  257.  
  258. (defun dotspacemacs/user-init ()
  259.   "Initialization function for user code.
  260. It is called immediately after `dotspacemacs/init', before layer configuration
  261. executes.
  262. This function is mostly useful for variables that need to be set
  263. before packages are loaded. If you are unsure, you should try in setting them in
  264. `dotspacemacs/user-config' first."
  265.   ;; gnutls
  266.   (require 'gnutls)
  267.   (add-to-list 'gnutls-trustfiles (expand-file-name "/usr/local/etc/libressl/cert.pem"))
  268.   (setq gnutls-verify-error t)
  269.   )
  270.  
  271. (defun dotspacemacs/user-config ()
  272.   "Configuration function for user code.
  273. This function is called at the very end of Spacemacs initialization after
  274. layers configuration.
  275. This is the place where most of your configurations should be done. Unless it is
  276. explicitly specified that a variable should be set before a package is loaded,
  277. you should place your code here."
  278.   (menu-bar-mode 1)
  279.   (display-time-mode 1)
  280.   (setq powerline-default-separator 'arrow)
  281.   (setq haskell-process-args-stack-ghci '("--ghci-options=-ferror-spans"))
  282.   )
  283.  
  284. ;; Do not write anything past this comment. This is where Emacs will
  285. ;; auto-generate custom variable definitions.
  286. (custom-set-variables
  287.  ;; custom-set-variables was added by Custom.
  288.  ;; If you edit it by hand, you could mess it up, so be careful.
  289.  ;; Your init file should contain only one such instance.
  290.  ;; If there is more than one, they won't work right.
  291.  '(package-selected-packages
  292.    (quote
  293.     (company-anaconda org-category-capture ox-gfm fringe-helper git-gutter+ git-gutter stickyfunc-enhance srefactor pdf-tools tablist magit magit-popup git-commit with-editor iedit anzu packed smartparens goto-chg flycheck helm powerline request faceup projectile alert log4e markdown-mode hydra haml-mode diminish spinner bind-key avy highlight bind-map evil undo-tree haskell-mode yasnippet helm-core async dash s pos-tip winum fuzzy sml-mode xterm-color sql-indent shell-pop multi-term helm-company helm-c-yasnippet eshell-z eshell-prompt-extras esh-help company-web web-completion-data company-tern tern company-statistics company-emacs-eclim company-cabal company-c-headers company-auctex clojure-snippets auto-yasnippet ac-ispell auto-complete projectile-rails feature-mode web-beautify livid-mode skewer-mode simple-httpd json-mode json-snatcher json-reformat js2-refactor js2-mode js-doc coffee-mode clj-refactor inflections edn multiple-cursors paredit seq peg cider-eval-sexp-fu cider queue clojure-mode yapfify rvm ruby-tools ruby-test-mode rubocop rspec-mode robe rbenv rake pyvenv pytest pyenv-mode py-isort psci purescript-mode psc-ide dash-functional pip-requirements noflet minitest live-py-mode idris-mode prop-menu hy-mode helm-pydoc geiser flycheck-elm ensime sbt-mode scala-mode elm-mode eclim disaster cython-mode cmake-mode clang-format chruby bundler inf-ruby anaconda-mode pythonic auctex-latexmk reveal-in-osx-finder pbcopy osx-trash osx-dictionary org-ref key-chord ivy launchctl helm-bibtex parsebib biblio biblio-core hide-comnt uuidgen pug-mode org-projectile org-download link-hint intero hlint-refactor helm-hoogle git-link flyspell-correct-helm flyspell-correct eyebrowse evil-visual-mark-mode evil-unimpaired evil-ediff dumb-jump f company-ghci company-ghc company column-enforce-mode yaml-mode ws-butler window-numbering which-key web-mode volatile-highlights vi-tilde-fringe use-package toc-org tagedit sublime-themes spacemacs-theme spaceline solarized-theme smooth-scrolling smeargle slim-mode shm scss-mode sass-mode restart-emacs rainbow-delimiters racket-mode quelpa popwin persp-mode pcre2el paradox page-break-lines orgit org-repo-todo org-present org-pomodoro org-plus-contrib org-bullets open-junk-file ob-sml neotree move-text mmm-mode markdown-toc magit-gitflow macrostep lorem-ipsum linum-relative leuven-theme less-css-mode jade-mode info+ indent-guide ido-vertical-mode hungry-delete htmlize hl-todo hindent highlight-parentheses highlight-numbers highlight-indentation help-fns+ helm-themes helm-swoop helm-projectile helm-mode-manager helm-make helm-gitignore helm-flyspell helm-flx helm-descbinds helm-css-scss helm-ag haskell-snippets google-translate golden-ratio gnuplot gitconfig-mode gitattributes-mode git-timemachine git-messenger git-gutter-fringe git-gutter-fringe+ ghc gh-md flycheck-pos-tip flycheck-haskell flx-ido fill-column-indicator fancy-battery expand-region exec-path-from-shell evil-visualstar evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-magit evil-lisp-state evil-indent-plus evil-iedit-state evil-exchange evil-escape evil-args evil-anzu eval-sexp-fu emmet-mode elisp-slime-nav diff-hl define-word cmm-mode clean-aindent-mode buffer-move bracketed-paste auto-highlight-symbol auto-dictionary auto-compile auctex aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line)))
  294.  '(safe-local-variable-values
  295.    (quote
  296.     ((haskell-process-use-ghci . t)
  297.      (haskell-indent-spaces . 2)))))
  298. (custom-set-faces
  299.  ;; custom-set-faces was added by Custom.
  300.  ;; If you edit it by hand, you could mess it up, so be careful.
  301.  ;; Your init file should contain only one such instance.
  302.  ;; If there is more than one, they won't work right.
  303.  )
Add Comment
Please, Sign In to add comment