Guest User

.spacemacs

a guest
Mar 22nd, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 18.25 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.    ;; 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.      yaml
  35.      haskell
  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.      helm
  42.      ;; auto-completion
  43.      ;; better-defaults
  44.      emacs-lisp
  45.      ;; git
  46.      ;; markdown
  47.      ;; org
  48.      ;; (shell :variables
  49.      ;;        shell-default-height 30
  50.      ;;        shell-default-position 'bottom)
  51.      ;; spell-checking
  52.      ;; syntax-checking
  53.      ;; version-control
  54.      )
  55.    ;; List of additional packages that will be installed without being
  56.    ;; wrapped in a layer. If you need some configuration for these
  57.    ;; packages, then consider creating a layer. You can also put the
  58.    ;; configuration in `dotspacemacs/user-config'.
  59.    dotspacemacs-additional-packages '()
  60.    ;; A list of packages that cannot be updated.
  61.    dotspacemacs-frozen-packages '()
  62.    ;; A list of packages that will not be installed and loaded.
  63.    dotspacemacs-excluded-packages '()
  64.    ;; Defines the behaviour of Spacemacs when installing packages.
  65.    ;; Possible values are `used-only', `used-but-keep-unused' and `all'.
  66.    ;; `used-only' installs only explicitly used packages and uninstall any
  67.    ;; unused packages as well as their unused dependencies.
  68.    ;; `used-but-keep-unused' installs only the used packages but won't uninstall
  69.    ;; them if they become unused. `all' installs *all* packages supported by
  70.    ;; Spacemacs and never uninstall them. (default is `used-only')
  71.    dotspacemacs-install-packages 'used-only))
  72.  
  73. (defun dotspacemacs/init ()
  74.   "Initialization function.
  75. This function is called at the very startup of Spacemacs initialization
  76. before layers configuration.
  77. You should not put any user code in there besides modifying the variable
  78. values."
  79.   ;; This setq-default sexp is an exhaustive list of all the supported
  80.   ;; spacemacs settings.
  81.   (setq-default
  82.    ;; If non nil ELPA repositories are contacted via HTTPS whenever it's
  83.    ;; possible. Set it to nil if you have no way to use HTTPS in your
  84.    ;; environment, otherwise it is strongly recommended to let it set to t.
  85.    ;; This variable has no effect if Emacs is launched with the parameter
  86.    ;; `--insecure' which forces the value of this variable to nil.
  87.    ;; (default t)
  88.    dotspacemacs-elpa-https t
  89.    ;; Maximum allowed time in seconds to contact an ELPA repository.
  90.    dotspacemacs-elpa-timeout 5
  91.    ;; If non nil then spacemacs will check for updates at startup
  92.    ;; when the current branch is not `develop'. Note that checking for
  93.    ;; new versions works via git commands, thus it calls GitHub services
  94.    ;; whenever you start Emacs. (default nil)
  95.    dotspacemacs-check-for-update nil
  96.    ;; If non-nil, a form that evaluates to a package directory. For example, to
  97.    ;; use different package directories for different Emacs versions, set this
  98.    ;; to `emacs-version'.
  99.    dotspacemacs-elpa-subdirectory nil
  100.    ;; One of `vim', `emacs' or `hybrid'.
  101.    ;; `hybrid' is like `vim' except that `insert state' is replaced by the
  102.    ;; `hybrid state' with `emacs' key bindings. The value can also be a list
  103.    ;; with `:variables' keyword (similar to layers). Check the editing styles
  104.    ;; section of the documentation for details on available variables.
  105.    ;; (default 'vim)
  106.    dotspacemacs-editing-style 'vim
  107.    ;; If non nil output loading progress in `*Messages*' buffer. (default nil)
  108.    dotspacemacs-verbose-loading nil
  109.    ;; Specify the startup banner. Default value is `official', it displays
  110.    ;; the official spacemacs logo. An integer value is the index of text
  111.    ;; banner, `random' chooses a random text banner in `core/banners'
  112.    ;; directory. A string value must be a path to an image format supported
  113.    ;; by your Emacs build.
  114.    ;; If the value is nil then no banner is displayed. (default 'official)
  115.    dotspacemacs-startup-banner 'official
  116.    ;; List of items to show in startup buffer or an association list of
  117.    ;; the form `(list-type . list-size)`. If nil then it is disabled.
  118.    ;; Possible values for list-type are:
  119.    ;; `recents' `bookmarks' `projects' `agenda' `todos'."
  120.    ;; List sizes may be nil, in which case
  121.    ;; `spacemacs-buffer-startup-lists-length' takes effect.
  122.    dotspacemacs-startup-lists '((recents . 5)
  123.                                 (projects . 7))
  124.    ;; True if the home buffer should respond to resize events.
  125.    dotspacemacs-startup-buffer-responsive t
  126.    ;; Default major mode of the scratch buffer (default `text-mode')
  127.    dotspacemacs-scratch-mode 'text-mode
  128.    ;; List of themes, the first of the list is loaded when spacemacs starts.
  129.    ;; Press <SPC> T n to cycle to the next theme in the list (works great
  130.    ;; with 2 themes variants, one dark and one light)
  131.    dotspacemacs-themes '(spacemacs-dark
  132.                          spacemacs-light)
  133.    ;; If non nil the cursor color matches the state color in GUI Emacs.
  134.    dotspacemacs-colorize-cursor-according-to-state t
  135.    ;; Default font, or prioritized list of fonts. `powerline-scale' allows to
  136.    ;; quickly tweak the mode-line size to make separators look not too crappy.
  137.    dotspacemacs-default-font '("Menlo"
  138.                                :size 15
  139.                                :weight normal
  140.                                :width normal
  141.                                :powerline-scale 1.1)
  142.    ;; The leader key
  143.    dotspacemacs-leader-key "SPC"
  144.    ;; The key used for Emacs commands (M-x) (after pressing on the leader key).
  145.    ;; (default "SPC")
  146.    dotspacemacs-emacs-command-key "SPC"
  147.    ;; The key used for Vim Ex commands (default ":")
  148.    dotspacemacs-ex-command-key ":"
  149.    ;; The leader key accessible in `emacs state' and `insert state'
  150.    ;; (default "M-m")
  151.    dotspacemacs-emacs-leader-key "M-m"
  152.    ;; Major mode leader key is a shortcut key which is the equivalent of
  153.    ;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",")
  154.    dotspacemacs-major-mode-leader-key ","
  155.    ;; Major mode leader key accessible in `emacs state' and `insert state'.
  156.    ;; (default "C-M-m")
  157.    dotspacemacs-major-mode-emacs-leader-key "C-M-m"
  158.    ;; These variables control whether separate commands are bound in the GUI to
  159.    ;; the key pairs C-i, TAB and C-m, RET.
  160.    ;; Setting it to a non-nil value, allows for separate commands under <C-i>
  161.    ;; and TAB or <C-m> and RET.
  162.    ;; In the terminal, these pairs are generally indistinguishable, so this only
  163.    ;; works in the GUI. (default nil)
  164.    dotspacemacs-distinguish-gui-tab nil
  165.    ;; If non nil `Y' is remapped to `y$' in Evil states. (default nil)
  166.    dotspacemacs-remap-Y-to-y$ nil
  167.    ;; If non-nil, the shift mappings `<' and `>' retain visual state if used
  168.    ;; there. (default t)
  169.    dotspacemacs-retain-visual-state-on-shift t
  170.    ;; If non-nil, J and K move lines up and down when in visual mode.
  171.    ;; (default nil)
  172.    dotspacemacs-visual-line-move-text nil
  173.    ;; If non nil, inverse the meaning of `g' in `:substitute' Evil ex-command.
  174.    ;; (default nil)
  175.    dotspacemacs-ex-substitute-global nil
  176.    ;; Name of the default layout (default "Default")
  177.    dotspacemacs-default-layout-name "Default"
  178.    ;; If non nil the default layout name is displayed in the mode-line.
  179.    ;; (default nil)
  180.    dotspacemacs-display-default-layout nil
  181.    ;; If non nil then the last auto saved layouts are resume automatically upon
  182.    ;; start. (default nil)
  183.    dotspacemacs-auto-resume-layouts nil
  184.    ;; Size (in MB) above which spacemacs will prompt to open the large file
  185.    ;; literally to avoid performance issues. Opening a file literally means that
  186.    ;; no major mode or minor modes are active. (default is 1)
  187.    dotspacemacs-large-file-size 1
  188.    ;; Location where to auto-save files. Possible values are `original' to
  189.    ;; auto-save the file in-place, `cache' to auto-save the file to another
  190.    ;; file stored in the cache directory and `nil' to disable auto-saving.
  191.    ;; (default 'cache)
  192.    dotspacemacs-auto-save-file-location 'cache
  193.    ;; Maximum number of rollback slots to keep in the cache. (default 5)
  194.    dotspacemacs-max-rollback-slots 5
  195.    ;; If non nil, `helm' will try to minimize the space it uses. (default nil)
  196.    dotspacemacs-helm-resize nil
  197.    ;; if non nil, the helm header is hidden when there is only one source.
  198.    ;; (default nil)
  199.    dotspacemacs-helm-no-header nil
  200.    ;; define the position to display `helm', options are `bottom', `top',
  201.    ;; `left', or `right'. (default 'bottom)
  202.    dotspacemacs-helm-position 'bottom
  203.    ;; Controls fuzzy matching in helm. If set to `always', force fuzzy matching
  204.    ;; in all non-asynchronous sources. If set to `source', preserve individual
  205.    ;; source settings. Else, disable fuzzy matching in all sources.
  206.    ;; (default 'always)
  207.    dotspacemacs-helm-use-fuzzy 'always
  208.    ;; If non nil the paste micro-state is enabled. When enabled pressing `p`
  209.    ;; several times cycle between the kill ring content. (default nil)
  210.    dotspacemacs-enable-paste-transient-state nil
  211.    ;; Which-key delay in seconds. The which-key buffer is the popup listing
  212.    ;; the commands bound to the current keystroke sequence. (default 0.4)
  213.    dotspacemacs-which-key-delay 0.4
  214.    ;; Which-key frame position. Possible values are `right', `bottom' and
  215.    ;; `right-then-bottom'. right-then-bottom tries to display the frame to the
  216.    ;; right; if there is insufficient space it displays it at the bottom.
  217.    ;; (default 'bottom)
  218.    dotspacemacs-which-key-position 'bottom
  219.    ;; If non nil a progress bar is displayed when spacemacs is loading. This
  220.    ;; may increase the boot time on some systems and emacs builds, set it to
  221.    ;; nil to boost the loading time. (default t)
  222.    dotspacemacs-loading-progress-bar t
  223.    ;; If non nil the frame is fullscreen when Emacs starts up. (default nil)
  224.    ;; (Emacs 24.4+ only)
  225.    dotspacemacs-fullscreen-at-startup nil
  226.    ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen.
  227.    ;; Use to disable fullscreen animations in OSX. (default nil)
  228.    dotspacemacs-fullscreen-use-non-native nil
  229.    ;; If non nil the frame is maximized when Emacs starts up.
  230.    ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.
  231.    ;; (default nil) (Emacs 24.4+ only)
  232.    dotspacemacs-maximized-at-startup t
  233.    ;; A value from the range (0..100), in increasing opacity, which describes
  234.    ;; the transparency level of a frame when it's active or selected.
  235.    ;; Transparency can be toggled through `toggle-transparency'. (default 90)
  236.    dotspacemacs-active-transparency 90
  237.    ;; A value from the range (0..100), in increasing opacity, which describes
  238.    ;; the transparency level of a frame when it's inactive or deselected.
  239.    ;; Transparency can be toggled through `toggle-transparency'. (default 90)
  240.    dotspacemacs-inactive-transparency 90
  241.    ;; If non nil show the titles of transient states. (default t)
  242.    dotspacemacs-show-transient-state-title t
  243.    ;; If non nil show the color guide hint for transient state keys. (default t)
  244.    dotspacemacs-show-transient-state-color-guide t
  245.    ;; If non nil unicode symbols are displayed in the mode line. (default t)
  246.    dotspacemacs-mode-line-unicode-symbols t
  247.    ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth
  248.    ;; scrolling overrides the default behavior of Emacs which recenters point
  249.    ;; when it reaches the top or bottom of the screen. (default t)
  250.    dotspacemacs-smooth-scrolling t
  251.    ;; If non nil line numbers are turned on in all `prog-mode' and `text-mode'
  252.    ;; derivatives. If set to `relative', also turns on relative line numbers.
  253.    ;; (default nil)
  254.    dotspacemacs-line-numbers t
  255.    ;; Code folding method. Possible values are `evil' and `origami'.
  256.    ;; (default 'evil)
  257.    dotspacemacs-folding-method 'evil
  258.    ;; If non-nil smartparens-strict-mode will be enabled in programming modes.
  259.    ;; (default nil)
  260.    dotspacemacs-smartparens-strict-mode nil
  261.    ;; If non-nil pressing the closing parenthesis `)' key in insert mode passes
  262.    ;; over any automatically added closing parenthesis, bracket, quote, etc…
  263.    ;; This can be temporary disabled by pressing `C-q' before `)'. (default nil)
  264.    dotspacemacs-smart-closing-parenthesis nil
  265.    ;; Select a scope to highlight delimiters. Possible values are `any',
  266.    ;; `current', `all' or `nil'. Default is `all' (highlight any scope and
  267.    ;; emphasis the current one). (default 'all)
  268.    dotspacemacs-highlight-delimiters 'all
  269.    ;; If non nil, advise quit functions to keep server open when quitting.
  270.    ;; (default nil)
  271.    dotspacemacs-persistent-server nil
  272.    ;; List of search tool executable names. Spacemacs uses the first installed
  273.    ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'.
  274.    ;; (default '("ag" "pt" "ack" "grep"))
  275.    dotspacemacs-search-tools '("ag" "pt" "ack" "grep")
  276.    ;; The default package repository used if no explicit repository has been
  277.    ;; specified with an installed package.
  278.    ;; Not used for now. (default nil)
  279.    dotspacemacs-default-package-repository nil
  280.    ;; Delete whitespace while saving buffer. Possible values are `all'
  281.    ;; to aggressively delete empty line and long sequences of whitespace,
  282.    ;; `trailing' to delete only the whitespace at end of lines, `changed'to
  283.    ;; delete only whitespace for changed lines or `nil' to disable cleanup.
  284.    ;; (default nil)
  285.    dotspacemacs-whitespace-cleanup all
  286.    ))
  287.  
  288. (defun dotspacemacs/user-init ()
  289.   "Initialization function for user code.
  290. It is called immediately after `dotspacemacs/init', before layer configuration
  291. executes.
  292. This function is mostly useful for variables that need to be set
  293. before packages are loaded. If you are unsure, you should try in setting them in
  294. `dotspacemacs/user-config' first."
  295.   )
  296.  
  297. (defun dotspacemacs/user-config ()
  298.   "Configuration function for user code.
  299. This function is called at the very end of Spacemacs initialization after
  300. layers configuration.
  301. This is the place where most of your configurations should be done. Unless it is
  302. explicitly specified that a variable should be set before a package is loaded,
  303. you should place your code here."
  304.   (message "Inside \"dotspacemacs/user-config\"...")
  305.   (setq fci-rule-column 120)
  306.   (add-hook 'prog-mode-hook #'fci-mode)
  307.   (spacemacs/declare-prefix "o" "jason")
  308.   (spacemacs/declare-prefix "ob" "bookamrks")
  309.   (spacemacs/set-leader-keys "obs" 'bookmark-set)
  310.   (spacemacs/set-leader-keys "obj" 'bookmark-jump)
  311.   (spacemacs/set-leader-keys "obl" 'bookmark-bmenu-list)
  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.     (yaml-mode intero flycheck hlint-refactor hindent helm-hoogle haskell-snippets yasnippet company-ghci company-ghc ghc company haskell-mode cmm-mode 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))))
  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.  )
Add Comment
Please, Sign In to add comment