Guest User

Untitled

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