Guest User

Untitled

a guest
Jan 12th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 20.85 KB | None | 0 0
  1.  
  2. ;; -*- mode: emacs-lisp -*-
  3. ;; This file is loaded by Spacemacs at startup.
  4. ;; It must be stored in your home directory.
  5.  
  6. (defun dotspacemacs/layers ()
  7.   "Configuration Layers declaration.
  8. You should not put any user code in this function besides modifying the variable
  9. values."
  10.   (setq-default
  11.    ;; Base distribution to use. This is a layer contained in the directory
  12.    ;; `+distribution'. For now available distributions are `spacemacs-base'
  13.    ;; or `spacemacs'. (default 'spacemacs)
  14.    dotspacemacs-distribution 'spacemacs
  15.    ;; Lazy installation of layers (i.e. layers are installed only when a file
  16.    ;; with a supported type is opened). Possible values are `all', `unused'
  17.    ;; and `nil'. `unused' will lazy install only unused layers (i.e. layers
  18.    ;; not listed in variable `dotspacemacs-configuration-layers'), `all' will
  19.    ;; lazy install any layer that support lazy installation even the layers
  20.    ;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy
  21.    ;; installation feature and you have to explicitly list a layer in the
  22.    ;; variable `dotspacemacs-configuration-layers' to install it.
  23.    ;; (default 'unused)
  24.    dotspacemacs-enable-lazy-installation 'unused
  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.    ;; If non-nil layers with lazy install support are lazy installed.
  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.    ;; List of configuration layers to load.
  33.    dotspacemacs-configuration-layers
  34.    '(
  35.      ;; ----------------------------------------------------------------
  36.      ;; Example of useful layers you may want to use right away.
  37.      ;; Uncomment some layer names and press <SPC f e R> (Vim style) or
  38.      ;; <M-m f e R> (Emacs style) to install them.
  39.      ;; ----------------------------------------------------------------
  40.      helm
  41.      (c-c++ :variables
  42.             ;; next line for c++ header mode
  43.             ;;c-c++-default-mode-for-header 'c++-mode
  44.             c-c++-enable-clang-support t
  45.             )
  46.  
  47.  
  48.      (auto-completion :variables
  49.                       auto-completion-enable-snippets-in-popup t
  50.                       auto-completion-enable-help-tooltip t)
  51.      ;; better-defaults
  52.      emacs-lisp
  53.      themes-megapack
  54.      python
  55.      git
  56.      ;; markdown
  57.      org
  58.      (shell :variables
  59.              shell-default-shelll 'ansi-term
  60.              shell-default-height 30
  61.              shell-default-position 'bottom)
  62.      ;; spell-checking
  63.      syntax-checking
  64.      ;; version-control
  65.      )
  66.    ;; List of additional ckages that will be installed without being
  67.    ;; wrapped in a layer. If you need some configuration for these
  68.    ;; packages, then consider creating a layer. You can also put the
  69.    ;; configuration in `dotspacemacs/user-config'.
  70.    dotspacemacs-additional-packages '()
  71.    ;; A list of packages that cannot be updated.
  72.    dotspacemacs-frozen-packages '()
  73.    ;; A list of packages that will not be installed and loaded.
  74.    dotspacemacs-excluded-packages '()
  75.    ;; Defines the behaviour of Spacemacs when installing packages.
  76.    ;; Possible values are `used-only', `used-but-keep-unused' and `all'.
  77.    ;; `used-only' installs only explicitly used packages and uninstall any
  78.    ;; unused packages as well as their unused dependencies.
  79.    ;; `used-but-keep-unused' installs only the used packages but won't uninstall
  80.    ;; them if they become unused. `all' installs *all* packages supported by
  81.    ;; Spacemacs and never uninstall them. (default is `used-only')
  82.    dotspacemacs-install-packages 'used-only))
  83.  
  84. (defun dotspacemacs/init ()
  85.   "Initialization function.
  86. This function is called at the very startup of Spacemacs initialization
  87. before layers configuration.
  88. You should not put any user code in there besides modifying the variable
  89. values."
  90.   ;; This setq-default sexp is an exhaustive list of all the supported
  91.   ;; spacemacs settings.
  92.   (setq-default
  93.    ;; If non nil ELPA repositories are contacted via HTTPS whenever it's
  94.    ;; possible. Set it to nil if you have no way to use HTTPS in your
  95.    ;; environment, otherwise it is strongly recommended to let it set to t.
  96.    ;; This variable has no effect if Emacs is launched with the parameter
  97.    ;; `--insecure' which forces the value of this variable to nil.
  98.    ;; (default t)
  99.    dotspacemacs-elpa-https t
  100.    ;; Maximum allowed time in seconds to contact an ELPA repository.
  101.    dotspacemacs-elpa-timeout 5
  102.    ;; If non nil then spacemacs will check for updates at startup
  103.    ;; when the current branch is not `develop'. Note that checking for
  104.    ;; new versions works via git commands, thus it calls GitHub services
  105.    ;; whenever you start Emacs. (default nil)
  106.    dotspacemacs-check-for-update nil
  107.    ;; If non-nil, a form that evaluates to a package directory. For example, to
  108.    ;; use different package directories for different Emacs versions, set this
  109.    ;; to `emacs-version'.
  110.    dotspacemacs-elpa-subdirectory nil
  111.    ;; One of `vim', `emacs' or `hybrid'.
  112.    ;; `hybrid' is like `vim' except that `insert state' is replaced by the
  113.    ;; `hybrid state' with `emacs' key bindings. The value can also be a list
  114.    ;; with `:variables' keyword (similar to layers). Check the editing styles
  115.    ;; section of the documentation for details on available variables.
  116.    ;; (default 'vim)
  117.    dotspacemacs-editing-style 'vim
  118.    ;; If non nil output loading progress in `*Messages*' buffer. (default nil)
  119.    dotspacemacs-verbose-loading nil
  120.    ;; Specify the startup banner. Default value is `official', it displays
  121.    ;; the official spacemacs logo. An integer value is the index of text
  122.    ;; banner, `random' chooses a random text banner in `core/banners'
  123.    ;; directory. A string value must be a path to an image format supported
  124.    ;; by your Emacs build.
  125.    ;; If the value is nil then no banner is displayed. (default 'official)
  126.    dotspacemacs-startup-banner '000
  127.    ;; List of items to show in startup buffer or an association list of
  128.    ;; the form `(list-type . list-size)`. If nil then it is disabled.
  129.    ;; Possible values for list-type are:
  130.    ;; `recents' `bookmarks' `projects' `agenda' `todos'."
  131.    ;; List sizes may be nil, in which case
  132.    ;; `spacemacs-buffer-startup-lists-length' takes effect.
  133.    dotspacemacs-startup-lists '((recents . 5)
  134.                                 (projects . 7))
  135.    ;; True if the home buffer should respond to resize events.
  136.    dotspacemacs-startup-buffer-responsive t
  137.    ;; Default major mode of the scratch buffer (default `text-mode')
  138.    dotspacemacs-scratch-mode 'text-mode
  139.    ;; List of themes, the first of the list is loaded when spacemacs starts.
  140.    ;; Press <SPC> T n to cycle to the next theme in the list (works great
  141.    ;; with 2 themes variants, one dark and one light)
  142.    dotspacemacs-themes '(monokai
  143.                          solarized-light)
  144.    ;; If non nil the cursor color matches the state color in GUI Emacs.
  145.    dotspacemacs-colorize-cursor-according-to-state t
  146.    ;; Default font, or prioritized list of fonts. `powerline-scale' allows to
  147.    ;; quickly tweak the mode-line size to make separators look not too crappy.
  148.    dotspacemacs-default-font '("Source Code Pro"
  149.                                :size 38
  150.                                :weight normal
  151.                                :width normal
  152.                                :powerline-scale 1.1)
  153.    ;; The leader key
  154.    dotspacemacs-leader-key "SPC"
  155.    ;; The key used for Emacs commands (M-x) (after pressing on the leader key).
  156.    ;; (default "SPC")
  157.    dotspacemacs-emacs-command-key "SPC"
  158.    ;; The key used for Vim Ex commands (default ":")
  159.    dotspacemacs-ex-command-key ":"
  160.    ;; The leader key accessible in `emacs state' and `insert state'
  161.    ;; (default "M-m")
  162.    dotspacemacs-emacs-leader-key "M-m"
  163.    ;; Major mode leader key is a shortcut key which is the equivalent of
  164.    ;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",")
  165.    dotspacemacs-major-mode-leader-key ","
  166.    ;; Majo4mode leader key accessible in `emacs state' and `insert state'.
  167.    ;; (default "C-M-m")
  168.    dotspacemacs-major-mode-emacs-leader-key "C-M-m"
  169.    ;; These variables control whether separate commands are bound in the GUI to
  170.    ;; the key pairs C-i, TAB and C-m, RET.
  171.    ;; Setting it to a non-nil value, allows for separate commands under <C-i>
  172.    ;; and TAB or <C-m> and RET.
  173.    ;; In the terminal, these pairs are generally indistinguishable, so this only
  174.    ;; works in the GUI. (default nil)
  175.    dotspacemacs-distinguish-gui-tab nil
  176.    ;; If non nil `Y' is remapped to `y$' in Evil states. (default nil)
  177.    dotspacemacs-remap-Y-to-y$ nil
  178.    ;; If non-nil, the shift mappings `<' and `>' retain visual state if used
  179.    ;; there. (default t)
  180.    dotspacemacs-retain-visual-state-on-shift t
  181.    ;; If non-nil, J and K move lines up and down when in visual mode.
  182.    ;; (default nil)
  183.    dotspacemacs-visual-line-move-text nil
  184.    ;; If non nil, inverse the meaning of `g' in `:substitute' Evil ex-command.
  185.    ;; (default nil)
  186.    dotspacemacs-ex-substitute-global nil
  187.    ;; Name of the default layout (default "Default")
  188.    dotspacemacs-default-layout-name "Default"
  189.    ;; If non nil the default layout name is displayed in the mode-line.
  190.    ;; (default nil)
  191.    dotspacemacs-display-default-layout nil
  192.    ;; If non nil then the last auto saved layouts are resume automatically upon
  193.    ;; start. (default nil)
  194.    dotspacemacs-auto-resume-layouts nil
  195.    ;; Size (in MB) above which spacemacs will prompt to open the large file
  196.    ;; literally to avoid performance issues. Opening a file literally means that
  197.    ;; no major mode or minor modes are active. (default is 1)
  198.    dotspacemacs-large-file-size 1
  199.    ;; Location where to auto-save files. Possible values are `original' to
  200.    ;; auto-save the file in-place, `cache' to auto-save the file to another
  201.    ;; file stored in the cache directory and `nil' to disable auto-saving.
  202.    ;; (default 'cache)
  203.    dotspacemacs-auto-save-file-location 'cache
  204.    ;; Maximum number of rollback slots to keep in the cache. (default 5)
  205.    dotspacemacs-max-rollback-slots 5
  206.    ;; If non nil, `helm' will try to minimize the space it uses. (default nil)
  207.    dotspacemacs-helm-resize nil
  208.    ;; if non nil, the helm header is hidden when there is only one source.
  209.    ;; (default nil)
  210.    dotspacemacs-helm-no-header nil
  211.    ;; define the position to display `helm', options are `bottom', `top',
  212.    ;; `left', or `right'. (default 'bottom)
  213.    dotspacemacs-helm-position 'bottom
  214.    ;; Controls fuzzy matching in helm. If set to `always', force fuzzy matching
  215.    ;; in all non-asynchronous sources. If set to `source', preserve individual
  216.    ;; source settings. Else, disable fuzzy matching in all sources.
  217.    ;; (default 'always)
  218.    dotspacemacs-helm-use-fuzzy 'always
  219.    ;; If non nil the paste micro-state is enabled. When enabled pressing `p`
  220.    ;; several times cycle between the kill ring content. (default nil)
  221.    dotspacemacs-enable-paste-transient-state nil
  222.    ;; Which-key delay in seconds. The which-key buffer is the popup listing
  223.    ;; the commands bound to the current keystroke sequence. (default 0.4)
  224.    dotspacemacs-which-key-delay 0.4
  225.    ;; Which-key frame position. Possible values are `right', `bottom' and
  226.    ;; `right-then-bottom'. right-then-bottom tries to display the frame to the
  227.    ;; right; if there is insufficient space it displays it at the bottom.
  228.    ;; (default 'bottom)
  229.    dotspacemacs-which-key-position 'bottom
  230.    ;; If non nil a progress bar is displayed when spacemacs is loading. This
  231.    ;; may increase the boot time on some systems and emacs builds, set it to
  232.    ;; nil to boost the loading time. (default t)
  233.    dotspacemacs-loading-progress-bar t
  234.    ;; If non nil the frame is fullscreen when Emacs starts up. (default nil)
  235.    ;; (Emacs 24.4+ only)
  236.    dotspacemacs-fullscreen-at-startup t
  237.    ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen.
  238.    ;; Use to disable fullscreen animations in OSX. (default nil)
  239.    dotspacemacs-fullscreen-use-non-native nil
  240.    ;; If non nil the frame is maximized when Emacs starts up.
  241.    ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.
  242.    ;; (default nil) (Emacs 24.4+ only)
  243.    dotspacemacs-maximized-at-startup nil
  244.    ;; A value from the range (0..100), in increasing opacity, which describes
  245.    ;; the transparency level of a frame when it's active or selected.
  246.    ;; Transparency can be toggled through `toggle-transparency'. (default 90)
  247.    dotspacemacs-active-transparency 90
  248.    ;; A value from the range (0..100), in increasing opacity, which describes
  249.    ;; the transparency level of a frame when it's inactive or deselected.
  250.    ;; Transparency can be toggled through `toggle-transparency'. (default 90)
  251.    dotspacemacs-inactive-transparency 90
  252.    ;; If non nil show the titles of transient states. (default t)
  253.    dotspacemacs-show-transient-state-title t
  254.    ;; If non nil show the color guide hint for transient state keys. (default t)
  255.    dotspacemacs-show-transient-state-color-guide t
  256.    ;; If non nil unicode symbols are displayed in the mode line. (default t)
  257.    dotspacemacs-mode-line-unicode-symbols t
  258.    ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth
  259.    ;; scrolling overrides the default behavior of Emacs which recenters point
  260.    ;; when it reaches the top or bottom of the screen. (default t)
  261.    dotspacemacs-smooth-scrolling t
  262.    ;; Control line numbers activation.
  263.    ;; If set to `t' or `relative' line numbers are turned on in all `prog-mode' and
  264.    ;; `text-mode' derivatives. If set to `relative', line numbers are relative.
  265.    ;; This variable can also be set to a property list for finer control:
  266.    ;; '(:relative nil
  267.    ;;   :disabled-for-modes dired-mode
  268.    ;;                       doc-view-mode
  269.    ;;                       markdown-mode
  270.    ;;                       org-mode
  271.    ;;                       pdf-view-mode
  272.    ;;                       text-mode
  273.    ;;   :size-limit-kb 1000)
  274.    ;; (default nil)
  275.    dotspacemacs-line-numbers 't
  276.    ;; Code folding method. Possible values are `evil' and `origami'.
  277.    ;; (default 'evil)
  278.    dotspacemacs-folding-method 'evil
  279.    ;; If non-nil smartparens-strict-mode will be enabled in programming modes.
  280.    ;; (default nil)
  281.    dotspacemacs-smartparens-strict-mode nil
  282.    ;; If non-nil pressing the closing parenthesis `)' key in insert mode passes
  283.    ;; over any automatically added closing parenthesis, bracket, quote, etc…
  284.    ;; This can be temporary disabled by pressing `C-q' before `)'. (default nil)
  285.    dotspacemacs-smart-closing-parenthesis nil
  286.    ;; Select a scope to highlight delimiters. Possible values are `any',
  287.    ;; `current', `all' or `nil'. Default is `all' (highlight any scope and
  288.    ;; emphasis the current one). (default 'all)
  289.    dotspacemacs-highlight-delimiters 'all
  290.    ;; If non nil, advise quit functions to keep server open when quitting.
  291.    ;; (default nil)
  292.    dotspacemacs-persistent-server nil
  293.    ;; List of search tool executable names. Spacemacs uses the first installed
  294.    ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'.
  295.    ;; (default '("ag" "pt" "ack" "grep"))
  296.    dotspacemacs-search-tools '("ag" "pt" "ack" "grep")
  297.    ;; The default package repository used if no explicit repository has been
  298.    ;; specified with an installed package.
  299.    ;; Not used for now. (default nil)
  300.    dotspacemacs-default-package-repository nil
  301.    ;; Delete whitespace while saving buffer. Possible values are `all'
  302.    ;; to aggressively delete empty line and long sequences of whitespace,
  303.    ;; `trailing' to delete only the whitespace at end of lines, `changed'to
  304.    ;; delete only whitespace for changed lines or `nil' to disable cleanup.
  305.    ;; (default nil)
  306.    dotspacemacs-whitespace-cleanup nil
  307.    ))
  308.  
  309. (defun dotspacemacs/user-init ()
  310.   "Initialization function for user code.
  311. It is called immediately after `dotspacemacs/init', before layer configuration
  312. executes.
  313. This function is mostly useful for variables that need to be set
  314. before packages are loaded. If you are unsure, you should try in setting them in
  315. `dotspacemacs/user-config' first."
  316.   )
  317.  
  318. (defun dotspacemacs/user-config ()
  319.   "Configuration function for user code.
  320. This function is called at the very end of Spacemacs initialization after
  321. layers configuration.
  322. This is the place where most of your configurations should be done. Unless it is
  323. explicitly specified that a variable should be set before a package is loaded,
  324. you should place your code here."
  325.   "(xterm-mouse-mode -1)"
  326.   (setq x-select-enable-clipboard t)
  327.   )
  328.  
  329. ;; Do not write anything past this comment. This is where Emacs will
  330. ;; auto-generate custom variable definitions.
  331. (custom-set-variables
  332.  ;; custom-set-variables was added by Custom.
  333.  ;; If you edit it by hand, you could mess it up, so be careful.
  334.  ;; Your init file should contain only one such instance.
  335.  ;; If there is more than one, they won't work right.
  336.  '(package-selected-packages
  337.    (quote
  338.     (company-quickhelp disaster company-c-headers cmake-mode clang-format helm-company helm-c-yasnippet fuzzy company-statistics company-anaconda company auto-yasnippet yasnippet ac-ispell auto-complete irony smeargle orgit org-projectile org-category-capture org-present org-pomodoro alert log4e gntp org-mime org-download magit-gitflow htmlize helm-gitignore gnuplot gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link evil-magit magit magit-popup git-commit with-editor zenburn-theme zen-and-art-theme yapfify white-sand-theme underwater-theme ujelly-theme twilight-theme twilight-bright-theme twilight-anti-bright-theme toxi-theme tao-theme tangotango-theme tango-plus-theme tango-2-theme sunny-day-theme sublime-themes subatomic256-theme subatomic-theme spacegray-theme soothe-theme solarized-theme soft-stone-theme soft-morning-theme soft-charcoal-theme smyx-theme seti-theme reverse-theme rebecca-theme railscasts-theme pyvenv pytest pyenv-mode py-isort purple-haze-theme professional-theme planet-theme pip-requirements phoenix-dark-pink-theme phoenix-dark-mono-theme organic-green-theme omtose-phellack-theme oldlace-theme occidental-theme obsidian-theme noctilux-theme naquadah-theme mustang-theme monochrome-theme molokai-theme moe-theme minimal-theme material-theme majapahit-theme madhat2r-theme lush-theme live-py-mode light-soap-theme jbeans-theme jazz-theme ir-black-theme inkpot-theme hy-mode dash-functional heroku-theme hemisu-theme helm-pydoc hc-zenburn-theme gruvbox-theme gruber-darker-theme grandshell-theme gotham-theme gandalf-theme flatui-theme flatland-theme farmhouse-theme exotica-theme espresso-theme dracula-theme django-theme darktooth-theme autothemer darkokai-theme darkmine-theme darkburn-theme dakrone-theme cython-mode cyberpunk-theme color-theme-sanityinc-tomorrow color-theme-sanityinc-solarized clues-theme cherry-blossom-theme busybee-theme bubbleberry-theme birds-of-paradise-plus-theme badwolf-theme apropospriate-theme anti-zenburn-theme anaconda-mode pythonic ample-zen-theme ample-theme alect-themes afternoon-theme xterm-color shell-pop multi-term flyspell-correct-helm flyspell-correct flycheck-pos-tip pos-tip flycheck eshell-z eshell-prompt-extras esh-help auto-dictionary ws-butler winum 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 indent-guide hydra hungry-delete hl-todo highlight-parentheses highlight-numbers parent-mode highlight-indentation 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 highlight 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 elisp-slime-nav dumb-jump f dash s diminish define-word column-enforce-mode clean-aindent-mode bind-map bind-key auto-highlight-symbol auto-compile packed aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line helm avy helm-core popup async))))
  339. (custom-set-faces
  340.  ;; custom-set-faces was added by Custom.
  341.  ;; If you edit it by hand, you could mess it up, so be careful.
  342.  ;; Your init file should contain only one such instance.
  343.  ;; If there is more than one, they won't work right.
  344.  '(default ((((class color) (min-colors 257)) (:foreground "#F8F8F2" :background "#272822")) (((class color) (min-colors 89)) (:foreground "#F5F5F5" :background "#1B1E1C")))))
Add Comment
Please, Sign In to add comment