Created
January 20, 2016 20:04
-
-
Save jfryman/35a109022555ab8c8b6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration." | |
(setq-default | |
;; List of additional paths where to look for configuration layers. | |
;; Paths must have a trailing slash (i.e. `~/.mycontribs/') | |
dotspacemacs-configuration-layer-path '() | |
dotspacemacs-configuration-layers | |
'( | |
(auto-completion :variables | |
auto-completion-tab-key-behavior 'cycle | |
auto-completion-return-key-behavior 'complete | |
auto-completion-complete-with-key-sequence nil) | |
better-defaults | |
emacs-lisp | |
(git :variables | |
git-enable-github-support t | |
git-gutter-use-fringe t) | |
github | |
markdown | |
puppet | |
elixir | |
emoji | |
evernote | |
evil-commentary | |
dash | |
python | |
ruby | |
(shell :variables | |
shell-default-shell 'eshell | |
shell-default-height 40 | |
shell-default-position 'top) | |
shell-scripts | |
spacemacs-layouts | |
syntax-checking | |
version-control | |
yaml | |
(ycmd :variables | |
ycmd-server-command "/usr/bin/python /Users/jfryman/.ycmd/ycmd")) | |
dotspacemacs-additional-packages '(evil-surround) | |
dotspacemacs-excluded-packages '(puppetfile-mode) | |
dotspacemacs-delete-orphan-packages t)) | |
(defun dotspacemacs/init () | |
"Initialization function. | |
This function is called at the very startup of Spacemacs initialization | |
before layers configuration." | |
(setq-default | |
dotspacemacs-editing-style 'vim | |
dotspacemacs-verbose-loading nil | |
dotspacemacs-startup-banner 'random | |
dotspacemacs-startup-lists '(recents projects) | |
dotspacemacs-themes '(solarized-dark | |
solarized-light) | |
dotspacemacs-colorize-cursor-according-to-state t | |
dotspacemacs-default-font '("Source Code Pro" | |
:size 14 | |
:weight light | |
:width normal | |
:powerline-scale 1.1) | |
dotspacemacs-leader-key "SPC" | |
dotspacemacs-emacs-leader-key "M-m" | |
dotspacemacs-major-mode-leader-key "," | |
dotspacemacs-major-mode-emacs-leader-key "C-M-m" | |
dotspacemacs-command-key ":" | |
dotspacemacs-auto-save-file-location 'cache | |
dotspacemacs-enable-paste-micro-state t | |
dotspacemacs-guide-key-delay 0.4 | |
dotspacemacs-loading-progress-bar nil | |
dotspacemacs-fullscreen-at-startup nil | |
dotspacemacs-fullscreen-use-non-native nil | |
dotspacemacs-maximized-at-startup nil | |
dotspacemacs-active-transparency 90 | |
dotspacemacs-inactive-transparency 90 | |
dotspacemacs-mode-line-unicode-symbols t | |
dotspacemacs-smooth-scrolling t | |
dotspacemacs-smartparens-strict-mode nil | |
dotspacemacs-highlight-delimiters 'all | |
dotspacemacs-search-tools '("ag" "pt" "ack" "grep") | |
dotspacemacs-default-package-repository nil | |
;; If non nil advises quit functions to keep server open when quitting. | |
dotspacemacs-persistent-server t | |
) | |
;; User initialization goes here | |
) | |
(defun dotspacemacs/user-config () | |
"Configuration function. | |
This function is called at the very end of Spacemacs initialization after | |
layers configuration." | |
;; Emacs Config | |
(add-hook 'prog-mode-hook #'linum-mode) | |
(add-hook 'alchemist-mode-hook 'company-mode) | |
(golden-ratio-mode t) | |
(setq golden-ratio-auto-scale t) | |
(prefer-coding-system 'utf-8) | |
(set-terminal-coding-system 'utf-8) | |
(set-keyboard-coding-system 'utf-8) | |
(fset 'evil-visual-update-x-selection 'ignore) | |
;; Themes | |
(setq powerline-default-separator 'arrow) | |
;; Global Settings | |
(global-ycmd-mode) | |
(global-evil-surround-mode 1) | |
(global-git-commit-mode t) | |
;; Autocomplete | |
(global-company-mode) | |
(setq company-idle-delay 0) | |
;; Tramp Settings | |
(eval-after-load 'tramp '(setenv "SHELL" "/bin/bash")) | |
(setq tramp-default-method "ssh") | |
(setq tramp-ssh-controlmaster-options | |
"-o ControlMaster=auto -o ControlPath='tramp.%%C' -o ControlPersist=no")) | |
;; Do not write anything past this comment. This is where Emacs will | |
;; auto-generate custom variable definitions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment