Guest User

Untitled

a guest
Jul 10th, 2016
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 13.02 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.      auto-completion
  27.      better-defaults
  28.      emacs-lisp
  29.      git
  30.      markdown
  31.      org
  32.      c-c++
  33.      java
  34.      ;; (shell :variables
  35.      ;;        shell-default-height 30
  36.      ;;        shell-default-position 'bottom)
  37.      spell-checking
  38.      syntax-checking
  39.      version-control
  40.      )
  41.    ;; List of additional packages that will be installed without being
  42.    ;; wrapped in a layer. If you need some configuration for these
  43.    ;; packages, then consider creating a layer. You can also put the
  44.    ;; configuration in `dotspacemacs/user-config'.
  45.    dotspacemacs-additional-packages '()
  46.    ;; A list of packages and/or extensions that will not be install and loaded.
  47.    dotspacemacs-excluded-packages '()
  48.    ;; If non-nil spacemacs will delete any orphan packages, i.e. packages that
  49.    ;; are declared in a layer which is not a member of
  50.    ;; the list `dotspacemacs-configuration-layers'. (default t)
  51.    dotspacemacs-delete-orphan-packages t))
  52.  
  53. (defun dotspacemacs/init ()
  54.   "Initialization function.
  55. This function is called at the very startup of Spacemacs initialization
  56. before layers configuration.
  57. You should not put any user code in there besides modifying the variable
  58. values."
  59.   ;; This setq-default sexp is an exhaustive list of all the supported
  60.   ;; spacemacs settings.
  61.   (setq-default
  62.    ;; If non nil ELPA repositories are contacted via HTTPS whenever it's
  63.    ;; possible. Set it to nil if you have no way to use HTTPS in your
  64.    ;; environment, otherwise it is strongly recommended to let it set to t.
  65.    ;; This variable has no effect if Emacs is launched with the parameter
  66.    ;; `--insecure' which forces the value of this variable to nil.
  67.    ;; (default t)
  68.    dotspacemacs-elpa-https t
  69.    ;; Maximum allowed time in seconds to contact an ELPA repository.
  70.    dotspacemacs-elpa-timeout 5
  71.    ;; If non nil then spacemacs will check for updates at startup
  72.    ;; when the current branch is not `develop'. (default t)
  73.    dotspacemacs-check-for-update t
  74.    ;; One of `vim', `emacs' or `hybrid'. Evil is always enabled but if the
  75.    ;; variable is `emacs' then the `holy-mode' is enabled at startup. `hybrid'
  76.    ;; uses emacs key bindings for vim's insert mode, but otherwise leaves evil
  77.    ;; unchanged. (default 'vim)
  78.    dotspacemacs-editing-style 'hybrid
  79.    ;; If non nil output loading progress in `*Messages*' buffer. (default nil)
  80.    dotspacemacs-verbose-loading nil
  81.    ;; Specify the startup banner. Default value is `official', it displays
  82.    ;; the official spacemacs logo. An integer value is the index of text
  83.    ;; banner, `random' chooses a random text banner in `core/banners'
  84.    ;; directory. A string value must be a path to an image format supported
  85.    ;; by your Emacs build.
  86.    ;; If the value is nil then no banner is displayed. (default 'official)
  87.    dotspacemacs-startup-banner 'official
  88.    ;; List of items to show in the startup buffer. If nil it is disabled.
  89.    ;; Possible values are: `recents' `bookmarks' `projects'.
  90.    ;; (default '(recents projects))
  91.    dotspacemacs-startup-lists '(recents projects)
  92.    ;; Number of recent files to show in the startup buffer. Ignored if
  93.    ;; `dotspacemacs-startup-lists' doesn't include `recents'. (default 5)
  94.    dotspacemacs-startup-recent-list-size 5
  95.    ;; Default major mode of the scratch buffer (default `text-mode')
  96.    dotspacemacs-scratch-mode 'text-mode
  97.    ;; List of themes, the first of the list is loaded when spacemacs starts.
  98.    ;; Press <SPC> T n to cycle to the next theme in the list (works great
  99.    ;; with 2 themes variants, one dark and one light)
  100.    dotspacemacs-themes '(monokai
  101.                          spacemacs-dark
  102.                          spacemacs-light
  103.                          solarized-light
  104.                          solarized-dark
  105.                          leuven
  106.                          zenburn)
  107.    ;; If non nil the cursor color matches the state color in GUI Emacs.
  108.    dotspacemacs-colorize-cursor-according-to-state t
  109.    ;; Default font. `powerline-scale' allows to quickly tweak the mode-line
  110.    ;; size to make separators look not too crappy.
  111.    dotspacemacs-default-font '("Source Code Pro"
  112.                                :size 13
  113.                                :weight normal
  114.                                :width normal
  115.                                :powerline-scale 1.1)
  116.    ;; The leader key
  117.    dotspacemacs-leader-key "SPC"
  118.    ;; The leader key accessible in `emacs state' and `insert state'
  119.    ;; (default "M-m")
  120.    dotspacemacs-emacs-leader-key "M-m"
  121.    ;; Major mode leader key is a shortcut key which is the equivalent of
  122.    ;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",")
  123.    dotspacemacs-major-mode-leader-key ","
  124.    ;; Major mode leader key accessible in `emacs state' and `insert state'.
  125.    ;; (default "C-M-m)
  126.    dotspacemacs-major-mode-emacs-leader-key "C-M-m"
  127.    ;; These variables control whether separate commands are bound in the GUI to
  128.    ;; the key pairs C-i, TAB and C-m, RET.
  129.    ;; Setting it to a non-nil value, allows for separate commands under <C-i>
  130.    ;; and TAB or <C-m> and RET.
  131.    ;; In the terminal, these pairs are generally indistinguishable, so this only
  132.    ;; works in the GUI. (default nil)
  133.    dotspacemacs-distinguish-gui-tab nil
  134.    ;; (Not implemented) dotspacemacs-distinguish-gui-ret nil
  135.    ;; The command key used for Evil commands (ex-commands) and
  136.    ;; Emacs commands (M-x).
  137.    ;; By default the command key is `:' so ex-commands are executed like in Vim
  138.    ;; with `:' and Emacs commands are executed with `<leader> :'.
  139.    dotspacemacs-command-key ":"
  140.    ;; If non nil `Y' is remapped to `y$'. (default t)
  141.    dotspacemacs-remap-Y-to-y$ t
  142.    ;; Name of the default layout (default "Default")
  143.    dotspacemacs-default-layout-name "Default"
  144.    ;; If non nil the default layout name is displayed in the mode-line.
  145.    ;; (default nil)
  146.    dotspacemacs-display-default-layout nil
  147.    ;; If non nil then the last auto saved layouts are resume automatically upon
  148.    ;; start. (default nil)
  149.    dotspacemacs-auto-resume-layouts nil
  150.    ;; Location where to auto-save files. Possible values are `original' to
  151.    ;; auto-save the file in-place, `cache' to auto-save the file to another
  152.    ;; file stored in the cache directory and `nil' to disable auto-saving.
  153.    ;; (default 'cache)
  154.    dotspacemacs-auto-save-file-location 'cache
  155.    ;; Maximum number of rollback slots to keep in the cache. (default 5)
  156.    dotspacemacs-max-rollback-slots 5
  157.    ;; If non nil then `ido' replaces `helm' for some commands. For now only
  158.    ;; `find-files' (SPC f f), `find-spacemacs-file' (SPC f e s), and
  159.    ;; `find-contrib-file' (SPC f e c) are replaced. (default nil)
  160.    dotspacemacs-use-ido nil
  161.    ;; If non nil, `helm' will try to minimize the space it uses. (default nil)
  162.    dotspacemacs-helm-resize nil
  163.    ;; if non nil, the helm header is hidden when there is only one source.
  164.    ;; (default nil)
  165.    dotspacemacs-helm-no-header nil
  166.    ;; define the position to display `helm', options are `bottom', `top',
  167.    ;; `left', or `right'. (default 'bottom)
  168.    dotspacemacs-helm-position 'bottom
  169.    ;; If non nil the paste micro-state is enabled. When enabled pressing `p`
  170.    ;; several times cycle between the kill ring content. (default nil)
  171.    dotspacemacs-enable-paste-micro-state nil
  172.    ;; Which-key delay in seconds. The which-key buffer is the popup listing
  173.    ;; the commands bound to the current keystroke sequence. (default 0.4)
  174.    dotspacemacs-which-key-delay 0.4
  175.    ;; Which-key frame position. Possible values are `right', `bottom' and
  176.    ;; `right-then-bottom'. right-then-bottom tries to display the frame to the
  177.    ;; right; if there is insufficient space it displays it at the bottom.
  178.    ;; (default 'bottom)
  179.    dotspacemacs-which-key-position 'bottom
  180.    ;; If non nil a progress bar is displayed when spacemacs is loading. This
  181.    ;; may increase the boot time on some systems and emacs builds, set it to
  182.    ;; nil to boost the loading time. (default t)
  183.    dotspacemacs-loading-progress-bar t
  184.    ;; If non nil the frame is fullscreen when Emacs starts up. (default nil)
  185.    ;; (Emacs 24.4+ only)
  186.    dotspacemacs-fullscreen-at-startup nil
  187.    ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen.
  188.    ;; Use to disable fullscreen animations in OSX. (default nil)
  189.    dotspacemacs-fullscreen-use-non-native nil
  190.    ;; If non nil the frame is maximized when Emacs starts up.
  191.    ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.
  192.    ;; (default nil) (Emacs 24.4+ only)
  193.    dotspacemacs-maximized-at-startup nil
  194.    ;; A value from the range (0..100), in increasing opacity, which describes
  195.    ;; the transparency level of a frame when it's active or selected.
  196.    ;; Transparency can be toggled through `toggle-transparency'. (default 90)
  197.    dotspacemacs-active-transparency 90
  198.    ;; A value from the range (0..100), in increasing opacity, which describes
  199.    ;; the transparency level of a frame when it's inactive or deselected.
  200.    ;; Transparency can be toggled through `toggle-transparency'. (default 90)
  201.    dotspacemacs-inactive-transparency 90
  202.    ;; If non nil unicode symbols are displayed in the mode line. (default t)
  203.    dotspacemacs-mode-line-unicode-symbols t
  204.    ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth
  205.    ;; scrolling overrides the default behavior of Emacs which recenters the
  206.    ;; point when it reaches the top or bottom of the screen. (default t)
  207.    dotspacemacs-smooth-scrolling t
  208.    ;; If non nil line numbers are turned on in all `prog-mode' and `text-mode'
  209.    ;; derivatives. If set to `relative', also turns on relative line numbers.
  210.    ;; (default nil)
  211.    dotspacemacs-line-numbers nil
  212.    ;; If non-nil smartparens-strict-mode will be enabled in programming modes.
  213.    ;; (default nil)
  214.    dotspacemacs-smartparens-strict-mode nil
  215.    ;; Select a scope to highlight delimiters. Possible values are `any',
  216.    ;; `current', `all' or `nil'. Default is `all' (highlight any scope and
  217.    ;; emphasis the current one). (default 'all)
  218.    dotspacemacs-highlight-delimiters 'all
  219.    ;; If non nil advises quit functions to keep server open when quitting.
  220.    ;; (default nil)
  221.    dotspacemacs-persistent-server nil
  222.    ;; List of search tool executable names. Spacemacs uses the first installed
  223.    ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'.
  224.    ;; (default '("ag" "pt" "ack" "grep"))
  225.    dotspacemacs-search-tools '("ag" "pt" "ack" "grep")
  226.    ;; The default package repository used if no explicit repository has been
  227.    ;; specified with an installed package.
  228.    ;; Not used for now. (default nil)
  229.    dotspacemacs-default-package-repository nil
  230.    ;; Delete whitespace while saving buffer. Possible values are `all'
  231.    ;; to aggressively delete empty line and long sequences of whitespace,
  232.    ;; `trailing' to delete only the whitespace at end of lines, `changed'to
  233.    ;; delete only whitespace for changed lines or `nil' to disable cleanup.
  234.    ;; (default nil)
  235.    dotspacemacs-whitespace-cleanup nil
  236.    ))
  237.  
  238. (defun dotspacemacs/user-init ()
  239.   "Initialization function for user code.
  240. It is called immediately after `dotspacemacs/init', before layer configuration
  241. executes.
  242. This function is mostly useful for variables that need to be set
  243. before packages are loaded. If you are unsure, you should try in setting them in
  244. `dotspacemacs/user-config' first."
  245.   )
  246.  
  247. (defun dotspacemacs/user-config ()
  248.   "Configuration function for user code.
  249. This function is called at the very end of Spacemacs initialization after
  250. layers configuration.
  251. This is the place where most of your configurations should be done. Unless it is
  252. explicitly specified that a variable should be set before a package is loaded,
  253. you should place your code here."
  254.   (fset 'evil-visual-update-x-selection 'ignore)
  255. )
  256.  
  257. ;; Do not write anything past this comment. This is where Emacs will
  258. ;; auto-generate custom variable definitions.
Add Comment
Please, Sign In to add comment