Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
831 lines (783 sloc) 44.1 KB
;; -*- 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.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
;; or `spacemacs'. (default 'spacemacs)
dotspacemacs-distribution 'spacemacs
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
;; List of configuration layers to load. If it is the symbol `all' instead
;; of a list then all discovered layers will be installed.
dotspacemacs-configuration-layers
'(auto-completion
clojure
csv
docker
emacs-lisp
;; finance
git
;; (haskell :variables
;; haskell-completion-backend 'intero)
helm
html
javascript
(markdown :variables
markdown-command
"pandoc -f markdown+smart -t html5 --standalone --quiet \
-c $HOME/Dropbox/pandoc/bootstrap2.css \
-c $HOME/Dropbox/pandoc/GitHub2.css")
org
;; pdf-tools
(python :variables python-test-runner 'pytest
python-auto-set-local-pyvenv-virtualenv 'on-project-switch)
restclient
;;ruby
sql
scala
(shell :variables
shell-default-shell 'shell)
spell-checking
syntax-checking
yaml)
;; List of additional packages that will be installed without being
;; wrapped in a layer. If you need some configuration for these
;; packages, then consider creating a layer. You can also put the
;; configuration in `dotspacemacs/user-config'.
dotspacemacs-additional-packages '((ac-ispell :location
(recipe
:fetcher github
:repo "syohex/emacs-ac-ispell"))
csharp-mode
(demo-it :location
(recipe
:fetcher github
:repo "nickbarnwell/demo-it"
:branch "nb/feature/org-link-jump"))
org-tree-slide
haml-mode
interleave
olivetti
edit-indirect
ox-gfm
lsp-mode
lsp-ui
company-lsp
lsp-java
(usql :location (recipe :fetcher github :repo "nickbarnwell/usql.el")))
;; A list of packages and/or extensions that will not be install and loaded.
dotspacemacs-excluded-packages '(org-projectile)
;; Defines the behaviour of Spacemacs when installing packages.
;; Possible values are `used-only', `used-but-keep-unused' and `all'.
;; `used-only' installs only explicitly used packages and deletes any unused
;; packages as well as their unused dependencies. `used-but-keep-unused'
;; installs only the used packages but won't delete unused ones. `all'
;; installs *all* packages supported by Spacemacs and never uninstalls them.
;; (default is `used-only')
dotspacemacs-install-packages 'used-but-keep-unused))
(defun dotspacemacs/init ()
"Initialization function.
This function is called at the very startup of Spacemacs initialization
before layers configuration.
You should not put any user code in there besides modifying the variable
values."
;; This setq-default sexp is an exhaustive list of all the supported
;; spacemacs settings.
(setq-default
;; If non-nil ELPA repositories are contacted via HTTPS whenever it's
;; possible. Set it to nil if you have no way to use HTTPS in your
;; environment, otherwise it is strongly recommended to let it set to t.
;; This variable has no effect if Emacs is launched with the parameter
;; `--insecure' which forces the value of this variable to nil.
;; (default t)
dotspacemacs-elpa-https t
;; Maximum allowed time in seconds to contact an ELPA repository.
;; (default 5)
dotspacemacs-elpa-timeout 5
;; Set `gc-cons-threshold' and `gc-cons-percentage' when startup finishes.
;; This is an advanced option and should not be changed unless you suspect
;; performance issues due to garbage collection operations.
;; (default '(100000000 0.1))
dotspacemacs-gc-cons '(100000000 0.1)
;; If non-nil then Spacelpa repository is the primary source to install
;; a locked version of packages. If nil then Spacemacs will install the
;; latest version of packages from MELPA. (default nil)
dotspacemacs-use-spacelpa nil
;; If non-nil then verify the signature for downloaded Spacelpa archives.
;; (default nil)
dotspacemacs-verify-spacelpa-archives nil
;; If non-nil then spacemacs will check for updates at startup
;; when the current branch is not `develop'. Note that checking for
;; new versions works via git commands, thus it calls GitHub services
;; whenever you start Emacs. (default nil)
dotspacemacs-check-for-update nil
;; If non-nil, a form that evaluates to a package directory. For example, to
;; use different package directories for different Emacs versions, set this
;; to `emacs-version'. (default 'emacs-version)
dotspacemacs-elpa-subdirectory 'emacs-version
;; One of `vim', `emacs' or `hybrid'.
;; `hybrid' is like `vim' except that `insert state' is replaced by the
;; `hybrid state' with `emacs' key bindings. The value can also be a list
;; with `:variables' keyword (similar to layers). Check the editing styles
;; section of the documentation for details on available variables.
;; (default 'vim)
dotspacemacs-editing-style 'vim
;; If non-nil output loading progress in `*Messages*' buffer. (default nil)
dotspacemacs-verbose-loading nil
;; Specify the startup banner. Default value is `official', it displays
;; the official spacemacs logo. An integer value is the index of text
;; banner, `random' chooses a random text banner in `core/banners'
;; directory. A string value must be a path to an image format supported
;; by your Emacs build.
;; If the value is nil then no banner is displayed. (default 'official)
dotspacemacs-startup-banner nil
;; List of items to show in the startup buffer. If nil it is disabled.
;; Possible values are: `recents' `bookmarks' `projects'.
;; (default '(recents projects))
dotspacemacs-startup-lists '(recents projects)
;; Number of recent files to show in the startup buffer. Ignored if
;; `dotspacemacs-startup-lists' doesn't include `recents'. (default 5)
dotspacemacs-startup-recent-list-size 15
;; Default major mode of the scratch buffer (default `text-mode')
dotspacemacs-scratch-mode 'emacs-lisp-mode
;; List of themes, the first of the list is loaded when spacemacs starts.
;; Press <SPC> T n to cycle to the next theme in the list (works great
;; with 2 themes variants, one dark and one light)
dotspacemacs-themes '(solarized-dark
spacemacs-light
spacemacs-dark
solarized-light
monokai)
;; If non nil the cursor color matches the state color in GUI Emacs.
dotspacemacs-colorize-cursor-according-to-state t
;; Default font. `powerline-scale' allows to quickly tweak the mode-line
;; size to make separators look not too crappy.
dotspacemacs-default-font '("Source Code Pro"
:size 14
:weight normal
:width normal
:powerline-scale 1.2)
dotspacemacs-mode-line-theme 'spacemacs
;; The leader key
dotspacemacs-leader-key "SPC"
;; The leader key accessible in `emacs state' and `insert state'
;; (default "M-m")
dotspacemacs-emacs-leader-key "M-m"
;; Major mode leader key is a shortcut key which is the equivalent of
;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",")
dotspacemacs-major-mode-leader-key ","
;; Major mode leader key accessible in `emacs state' and `insert state'.
;; (default "C-M-m)
dotspacemacs-major-mode-emacs-leader-key "C-M-m"
;; These variables control whether separate commands are bound in the GUI to
;; the key pairs C-i, TAB and C-m, RET.
;; Setting it to a non-nil value, allows for separate commands under <C-i>
;; and TAB or <C-m> and RET.
;; In the terminal, these pairs are generally indistinguishable, so this only
;; works in the GUI. (default nil)
dotspacemacs-distinguish-gui-tab nil
;; (Not implemented) dotspacemacs-distinguish-gui-ret nil
;; The command key used for Evil commands (ex-commands) and
;; Emacs commands (M-x).
;; By default the command key is `:' so ex-commands are executed like in Vim
;; with `:' and Emacs commands are executed with `<leader> :'.
dotspacemacs-command-key ":"
;; If non nil `Y' is remapped to `y$'. (default t)
dotspacemacs-remap-Y-to-y$ t
;; Name of the default layout (default "Default")
dotspacemacs-default-layout-name "Default"
;; If non nil the default layout name is displayed in the mode-line.
;; (default nil)
dotspacemacs-display-default-layout nil
;; If non nil then the last auto saved layouts are resume automatically upon
;; start. (default nil)
dotspacemacs-auto-resume-layouts nil
;; Location where to auto-save files. Possible values are `original' to
;; auto-save the file in-place, `cache' to auto-save the file to another
;; file stored in the cache directory and `nil' to disable auto-saving.
;; (default 'cache)
dotspacemacs-auto-save-file-location 'cache
;; Maximum number of rollback slots to keep in the cache. (default 5)
dotspacemacs-max-rollback-slots 5
;; If non nil then `ido' replaces `helm' for some commands. For now only
;; `find-files' (SPC f f), `find-spacemacs-file' (SPC f e s), and
;; `find-contrib-file' (SPC f e c) are replaced. (default nil)
dotspacemacs-use-ido nil
;; If non nil, `helm' will try to minimize the space it uses. (default nil)
dotspacemacs-helm-resize nil
;; if non nil, the helm header is hidden when there is only one source.
;; (default nil)
dotspacemacs-helm-no-header nil
;; define the position to display `helm', options are `bottom', `top',
;; `left', or `right'. (default 'bottom)
dotspacemacs-helm-position 'bottom
;; If non nil the paste micro-state is enabled. When enabled pressing `p`
;; several times cycle between the kill ring content. (default nil)
dotspacemacs-enable-paste-micro-state nil
;; Which-key delay in seconds. The which-key buffer is the popup listing
;; the commands bound to the current keystroke sequence. (default 0.4)
dotspacemacs-which-key-delay 0.4
;; Which-key frame position. Possible values are `right', `bottom' and
;; `right-then-bottom'. right-then-bottom tries to display the frame to the
;; right; if there is insufficient space it displays it at the bottom.
;; (default 'bottom)
dotspacemacs-which-key-position 'bottom
;; control where `switch-to-buffer' displays the buffer. if nil,
;; `switch-to-buffer' displays the buffer in the current window even if
;; another same-purpose window is available. if non-nil, `switch-to-buffer'
;; displays the buffer in a same-purpose window even if the buffer can be
;; displayed in the current window. (default nil)
dotspacemacs-switch-to-buffer-prefers-purpose nil
;; If non nil a progress bar is displayed when spacemacs is loading. This
;; may increase the boot time on some systems and emacs builds, set it to
;; nil to boost the loading time. (default t)
dotspacemacs-loading-progress-bar t
;; If non nil the frame is fullscreen when Emacs starts up. (default nil)
;; (Emacs 24.4+ only)
dotspacemacs-fullscreen-at-startup nil
;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen.
;; Use to disable fullscreen animations in OSX. (default nil)
dotspacemacs-fullscreen-use-non-native t
;; If non nil the frame is maximized when Emacs starts up.
;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.
;; (default nil) (Emacs 24.4+ only)
dotspacemacs-maximized-at-startup t
;; A value from the range (0..100), in increasing opacity, which describes
;; the transparency level of a frame when it's active or selected.
;; Transparency can be toggled through `toggle-transparency'. (default 90)
dotspacemacs-active-transparency 90
;; A value from the range (0..100), in increasing opacity, which describes
;; the transparency level of a frame when it's inactive or deselected.
;; Transparency can be toggled through `toggle-transparency'. (default 90)
dotspacemacs-inactive-transparency 90
;; If non nil unicode symbols are displayed in the mode line. (default t)
dotspacemacs-mode-line-unicode-symbols t
;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth
;; scrolling overrides the default behavior of Emacs which recenters the
;; point when it reaches the top or bottom of the screen. (default t)
dotspacemacs-smooth-scrolling t
;; If non nil line numbers are turned on in all `prog-mode' and `text-mode'
;; derivatives. If set to `relative', also turns on relative line numbers.
;; (default nil)
dotspacemacs-line-numbers t
;; If non-nil smartparens-strict-mode will be enabled in programming modes.
;; (default nil)
dotspacemacs-smartparens-strict-mode nil
;; Select a scope to highlight delimiters. Possible values are `any',
;; `current', `all' or `nil'. Default is `all' (highlight any scope and
;; emphasis the current one). (default 'all)
dotspacemacs-highlight-delimiters 'all
;; If non nil advises quit functions to keep server open when quitting.
;; (default nil)
dotspacemacs-persistent-server nil
;; List of search tool executable names. Spacemacs uses the first installed
;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'.
;; (default '("ag" "pt" "ack" "grep"))
dotspacemacs-search-tools '("ack" "grep")
;; The default package repository used if no explicit repository has been
;; specified with an installed package.
;; Not used for now. (default nil)
dotspacemacs-default-package-repository nil
;; Delete whitespace while saving buffer. Possible values are `all'
;; to aggressively delete empty line and long sequences of whitespace,
;; `trailing' to delete only the whitespace at end of lines, `changed'to
;; delete only whitespace for changed lines or `nil' to disable cleanup.
;; (default nil)
dotspacemacs-whitespace-cleanup 'trailing))
(defun dotspacemacs/user-init ()
"Initialization function for user code. It is called immediately after
`dotspacemacs/init', before layer configuration executes. This function is
mostly useful for variables that need to be set before packages are loaded. If
you are unsure, you should try in setting them in
`dotspacemacs/user-config' first.")
(defun dotspacemacs/user-config ()
"Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration.
This is the place where most of your configurations should be done. Unless it is
explicitly specified that a variable should be set before a package is loaded,
you should place you code here."
;;I never use C-u to scroll; let it act as universal argument instead
(define-key evil-normal-state-map (kbd "C-u") 'universal-argument)
;;Add a comment macro
(defmacro comment (&rest body)
"Comment out one or more s-expressions."
nil)
;;Control default window splitting behaviour
(setq split-width-threshold 80
split-height-threshold 80)
;;Set backup directory to /tmp/ - https://www.emacswiki.org/emacs/BackupDirectory
(setq backup-directory-alist `((".*" . ,temporary-file-directory))
auto-save-file-name-transforms `((".*" ,temporary-file-directory t)))
;;Resize by pixels and not chars
(setq frame-resize-pixelwise t)
;;Scala Layer Configuration
(with-eval-after-load 'ensime
(setq ensime-startup-notification nil))
;;Automatically enable auto-fill-mode for text buffers
(add-hook 'text-mode-hook 'turn-on-auto-fill)
;;Disable Lion fullscreen
(setq ns-use-native-fullscreen nil)
;;Fontlocking for common Clojure functions such as apply and lambdas
(setq clojure-enable-fancify-symbols t)
;;Set the default junkfile location to be in my Dropbox folder
(setq open-junk-file-format "~/Dropbox/Scratchpad/%Y/%m/%d-%H%M%S.")
;;Disable linum mode when viewing a pdf to prevent locking up emacs
(add-hook 'pdf-view-mode-hook (defun my/pdf-view-hook()
(linum-mode -1)
(pdf-view-fit-height-to-window)
;;Make C-w swap to other window
(define-key pdf-view-mode-map
(kbd "C-w")
#'evil-window-map)))
;;Recognise Jenkins2 files as the horrible Groovy abomination they are
(push '("\\Jenkinsfile\\'" . groovy-mode) auto-mode-alist)
;; save all the agenda files after each capture
(with-eval-after-load 'org
;;Enable SQL in org-babel code blocks
(require 'ob-sql)
(defun my/org-dir-file (name)
"Prepend name with path to the org-directory root"
(concat org-directory name))
(defun my/org-capture-region-or-nil (s)
(if (and s (not (string= s "")))
(format "#+BEGIN_QUOTE\n%s#+END_QUOTE" s)))
(defun my/org-capture-clipboard-or-nil ()
(let ((cb (gui-get-selection 'CLIPBOARD)))
(if (not (zerop (length cb)))
cb)))
(defun my/org-capture-get-src-block-string (major-mode)
"Given a major mode symbol, return the associated org-src block
string that will enable syntax highlighting for that language
E.g. tuareg-mode will return 'ocaml', python-mode 'python', etc..."
(let ((mm (intern (replace-regexp-in-string "-mode" "" (format "%s" major-mode)))))
(or (car (rassoc mm org-src-lang-modes)) (format "%s" mm))))
(defun my/org-capture-code-snippet (f)
(with-current-buffer (find-buffer-visiting f)
(let ((code-snippet (buffer-substring-no-properties (mark) (- (point) 1)))
(func-name (which-function))
(file-name (buffer-file-name))
(line-number (line-number-at-pos (region-beginning)))
(org-src-mode (my/org-capture-get-src-block-string major-mode)))
(format
"file:%s::%s
In ~%s~:
#+BEGIN_SRC %s
%s
#+END_SRC"
file-name
line-number
func-name
org-src-mode
code-snippet))))
(setq org-confirm-babel-evaluate nil
;;Make org-src open editor in current window rather than a new frame
org-src-window-setup 'current-window
org-directory "~/Dropbox/Writing & Notes/org/"
org-default-notes-file (my/org-dir-file "notes.org")
;;org todo states
org-todo-keywords '((sequence "TODO" "IN-PROGRESS" "|" "DONE" "DELEGATED"))
org-agenda-files (list org-directory)
;;Display full path when refiling - useful for sub-headings
org-refile-use-outline-path t
org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 1))
org-capture-templates `(("t" "todo" entry (file+headline ,(my/org-dir-file "todo.org") "Unfiled")
"* TODO %?\n %U\n %a\n %(my/org-capture-region-or-nil \"%i\")\n"
:prepend t)
("T" "todo-clipboard" entry (file+headline ,(my/org-dir-file "todo.org") "Unfiled")
"* TODO %?\n %U\n %a\n %(my/org-capture-clipboard-or-nil)\n"
:prepend t)
("s" "code snippet" entry (file+headline ,(my/org-dir-file "snippets.org") "Unfiled")
"* %?\n%(my/org-capture-code-snippet \"%F\")")
("g" "gift" entry (file+headline ,(my/org-dir-file "gift-ideas.org") "Unfiled")
"%U\n%?\n%x\n")
("r" "reference" entry (file+headline ,(my/org-dir-file "reference.org") "Unfiled")
"* %^{title}\t%^g\n %U\n %?\n %(my/org-capture-clipboard-or-nil)\n")
("n" "nike-reference" entry (file+headline ,(my/org-dir-file "nike.org") "Unfiled (Nike)")
"** %^{title}\t%^g\n %U\n %?\n %(my/org-capture-clipboard-or-nil)\n")
("j" "jira-ticket" entry (file+headline ,(my/org-dir-file "nike.org") "JIRA")
"** TODO NDPM-%^{ID}: %^{Title} ([[https://jira.nike.com/browse/NDPM-%\\1][Link]])\n %U\n\n %?\n")))
(defun my/new-org-note ()
"Open a Helm find-file prompt starting in my org notes directory"
(interactive)
(let ((starting-dir (my/org-dir-file "notes/")))
(helm-find-files-1 starting-dir starting-dir)))
(add-hook 'org-mode-hook (defun my/org-mode-hook()
(auto-revert-mode) ;;auto-revert to catch changes from Dropbox/BeOrg
(smartparens-mode)
(undo-tree-mode)
(ignore-errors
(evil-define-key 'normal org-mode-map
(kbd "M-RET") 'org-meta-return)
(evil-define-key 'insert org-mode-map
(kbd "M-RET") 'org-meta-return
(kbd "RET") 'org-return-indent)
(evil-define-key 'visual org-mode-map
(kbd "g q") 'org-fill-paragraph))))
(defun save-all-agenda-buffers ()
"Function used to save all agenda buffers that are currently open, based on
`org-agenda-files'."
(interactive)
(save-current-buffer
(dolist (buffer (buffer-list t))
(set-buffer buffer)
(when (member (buffer-file-name)
(mapcar 'expand-file-name (org-agenda-files t)))
(save-buffer)))))
;;Save all my default org-buffers after a capture to ensure they get synced to BeOrg
(add-hook 'org-capture-after-finalize-hook 'save-all-agenda-buffers)
;;http://kitchingroup.cheme.cmu.edu/blog/2015/01/04/Redirecting-stderr-in-org-mode-shell-blocks/
(setq org-babel-default-header-args:sh
'((:prologue . "exec 2>&1") (:epilogue . ":"))))
(with-eval-after-load 'comint
;;See https://emacs.stackexchange.com/questions/14876/how-can-i-make-ansi-color-codes-inside-the-prompt-show-up-in-shell-mode/14877
(set-face-attribute 'comint-highlight-prompt nil :inherit nil))
(with-eval-after-load 'demo-it
;;We need to modify this function to make it work with my weird prompt command and spacemacs shell-pop bs
(defun demo-it--start-shell-reuse (title directory)
"Attempt to re-use existing shell/eshell with a buffer
named TITLE in a particular DIRECTORY."
(switch-to-buffer title)
(message "No error yet")
(when directory
(goto-char (point-max))
(demo-it-insert-shell (format "cd %s" directory) :instant)
(let ((inhibit-read-only t))
(erase-buffer))
(comment (demo-it-insert-shell "" :instant)))))
(with-eval-after-load 'json
(setq-default js-indent-level 2
json-reformat:indent-width 2)
(add-hook 'json-mode-hook (defun my/json-mode-hook ()
(flyspell-mode-off)
(flycheck-mode 1))))
(progn
(push '("\\.json\\'" . js2-mode) auto-mode-alist)
(push '("\\.js\\'" . js2-mode) auto-mode-alist)
(push '("\\.jsx\\'" . js2-mode) auto-mode-alist))
;;For GHC8.2.2 -- see https://github.com/ryukinix/dotfiles/commit/ffc635d6768dd37a0d66c0a1d02fbc3ebb453dbe
(with-eval-after-load 'haskell-mode
(setq haskell-process-args-ghci
'("-ferror-spans" "-fshow-loaded-modules"))
(setq haskell-process-args-cabal-repl
'("--ghc-options=-ferror-spans -fshow-loaded-modules"))
(setq haskell-process-args-stack-ghci
'("--ghci-options=-ferror-spans -fshow-loaded-modules"
"--no-build" "--no-load"))
(setq haskell-process-args-cabal-new-repl
'("--ghc-options=-ferror-spans -fshow-loaded-modules")))
(with-eval-after-load 'ledger
;;ledger-mode configuration, from http://unconj.ca/blog/using-hledger-with-ledger-mode.html
(setq ledger-mode-should-check-version nil
ledger-report-links-in-register nil
ledger-binary-path "hledger"))
(with-eval-after-load 'tramp
(add-to-list 'tramp-remote-path 'tramp-own-remote-path))
(with-eval-after-load 'pytest
(setq pytest-cmd-format-string "cd '%s' && python -m %s %s '%s'"
pytest-global-name "pytest"))
(with-eval-after-load 'sql
(add-hook 'sql-mode-hook 'sql-indent-mode)
(require 'usql))
(with-eval-after-load 'olivetti
;;Linum mode breaks olivetti in Emacs <26.1; just disable lines for these file
(add-hook 'olivetti-mode-hook (defun my/disable-linum-in-olivetti () (linum-mode -1))))
(use-package lsp-mode
:defer t
:commands lsp-mode
:init (setq lsp-before-save-edits t
lsp-inhibit-message t)
:config (add-to-list 'spacemacs-default-company-backends 'company-lsp))
(use-package lsp-ui
:commands lsp-ui-mode
:hook (lsp-mode . lsp-ui-mode)
:init (setq lsp-ui-sideline-update-mode 'point)
:config (add-hook 'lsp-mode-hook 'lsp-ui-mode))
(use-package company-lsp
:hook (lsp-mode . company-mode)
:init (setq company-lsp-cache-candidates 'auto
company-lsp-enable-snippet t)
:config (spacemacs|add-company-backends
:backends 'company-lsp
:modes java-mode))
(use-package lsp-java
:commands lsp-java-enable
:init (progn (defun my/java-mode-jump-handler ()
(let ((xref-prompt-for-identifier nil))
(call-interactively #'xref-find-definitions)))
(setq lsp-java-server-install-dir "~/bin/jdt/"
lsp-java-trace-server 'verbose
lsp-java--workspace-folders (list "~/projects/nike/marketing-segment-dm-poc/"))
(spacemacs|define-jump-handlers java-mode my/java-mode-jump-handler))
:hook ((java-mode . lsp-java-enable)
(java-mode . flycheck-mode)))
(use-package restclient
;;For restclient.el Response windows, bind 'q' in Normal mode to close the
;;buffer and split
:commands restclient-mode
:init (defun my/restclient-response-window-hook ()
(if (string= (buffer-name) "*HTTP Response*")
(ignore-errors
(evil-local-set-key 'normal
(kbd "q") 'kill-buffer-and-window))))
:config (add-hook 'restclient-response-loaded-hook 'my/restclient-response-window-hook))
;;Activate exec-path-from-shell only when on Mac
(use-package exec-path-from-shell
:commands exec-path-from-shell-initialize
:config (when (memq window-system '(mac ns))
(exec-path-from-shell-initialize)))
)
;; Do not write anything past this comment. This is where Emacs will
;; auto-generate custom variable definitions.
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(cider-cljs-lein-repl
"(do (require 'figwheel-sidecar.repl-api) (figwheel-sidecar.repl-api/start-figwheel!) (figwheel-sidecar.repl-api/cljs-repl))")
'(compilation-ask-about-save nil)
'(compilation-message-face (quote default))
'(compilation-scroll-output (quote first-error))
'(cua-global-mark-cursor-color "#2aa198")
'(cua-normal-cursor-color "#657b83")
'(cua-overwrite-cursor-color "#b58900")
'(cua-read-only-cursor-color "#859900")
'(custom-safe-themes
(quote
("4aee8551b53a43a883cb0b7f3255d6859d766b6c5e14bcb01bed572fcbef4328" "4cf3221feff536e2b3385209e9b9dc4c2e0818a69a1cdb4b522756bcdf4e00a4" default)))
'(debug-on-error nil)
'(evil-want-Y-yank-to-eol t)
'(eyebrowse-mode t)
'(eyebrowse-wrap-around t)
'(fci-rule-color "#eee8d5" t)
'(git-link-open-in-browser t t)
'(highlight-changes-colors (quote ("#d33682" "#6c71c4")))
'(highlight-symbol-colors
(--map
(solarized-color-blend it "#fdf6e3" 0.25)
(quote
("#b58900" "#2aa198" "#dc322f" "#6c71c4" "#859900" "#cb4b16" "#268bd2"))))
'(highlight-symbol-foreground-color "#586e75")
'(highlight-tail-colors
(quote
(("#eee8d5" . 0)
("#B4C342" . 20)
("#69CABF" . 30)
("#69B7F0" . 50)
("#DEB542" . 60)
("#F2804F" . 70)
("#F771AC" . 85)
("#eee8d5" . 100))))
'(hl-bg-colors
(quote
("#DEB542" "#F2804F" "#FF6E64" "#F771AC" "#9EA0E5" "#69B7F0" "#69CABF" "#B4C342")))
'(hl-fg-colors
(quote
("#fdf6e3" "#fdf6e3" "#fdf6e3" "#fdf6e3" "#fdf6e3" "#fdf6e3" "#fdf6e3" "#fdf6e3")))
'(hl-paren-colors (quote ("#2aa198" "#b58900" "#268bd2" "#6c71c4" "#859900")) t)
'(json-reformat:indent-width 2)
'(lsp-before-save-edits t)
'(lsp-highlight-symbol-at-point t)
'(lsp-inhibit-message t)
'(lsp-java-server-install-dir "~/bin/jdt/")
'(magit-diff-use-overlays nil)
'(nrepl-message-colors
(quote
("#dc322f" "#cb4b16" "#b58900" "#546E00" "#B4C342" "#00629D" "#2aa198" "#d33682" "#6c71c4")))
'(olivetti-body-width 85)
'(olivetti-hide-mode-line t)
'(org-agenda-files
(quote
("~/Dropbox/Writing & Notes/org/nike.org" "~/Dropbox/Writing & Notes/org/gift-ideas.org" "~/Dropbox/Writing & Notes/org/reference.org" "~/Dropbox/Writing & Notes/org/refile-beorg.org" "~/Dropbox/Writing & Notes/org/snippets.org" "~/Dropbox/Writing & Notes/org/todo.org")))
'(org-export-backends (quote (ascii html latex md gfm)))
'(package-selected-packages
(quote
(sesman sql-indent csv-mode hive graphql-mode lsp-intellij company-lsp lsp-ui lsp-java lsp-mode ledger-mode flycheck-ledger company-ghc demo-it yaml-mode intero hlint-refactor hindent helm-hoogle haskell-snippets ghc flycheck-haskell company-ghci haskell-mode company-cabal cmm-mode ox-gfm org-tree-slide omnisharp shut-up fancy-narrow edit-indirect olivetti vsts-mode usql csharp-mode ob-ipython powerline tablist pcre2el org-plus-contrib org-mime ht alert log4e gntp markdown-mode skewer-mode simple-httpd json-snatcher json-reformat js2-mode parent-mode projectile request haml-mode gitignore-mode flyspell-correct pos-tip flycheck flx magit magit-popup git-commit ghub let-alist with-editor smartparens iedit anzu evil goto-chg undo-tree sbt-mode scala-mode web-completion-data dash-functional tern restclient know-your-http-well company hydra inflections edn multiple-cursors paredit peg eval-sexp-fu highlight cider seq spinner queue pkg-info clojure-mode epl inf-ruby bind-map bind-key yasnippet packed anaconda-mode pythonic f s helm avy helm-core async auto-complete popup solarized-theme yapfify xterm-color ws-butler winum which-key web-mode web-beautify volatile-highlights vi-tilde-fringe uuidgen use-package toc-org tagedit spaceline smeargle slim-mode shell-pop scss-mode sass-mode rvm ruby-tools ruby-test-mode rubocop rspec-mode robe restclient-helm restart-emacs rbenv rake rainbow-delimiters pyvenv pytest pyenv-mode py-isort pug-mode popwin pip-requirements persp-mode pdf-tools paradox orgit org-present org-pomodoro org-download org-bullets open-junk-file ob-restclient ob-http noflet neotree multi-term mu4e-maildirs-extension mu4e-alert move-text mmm-mode minitest markdown-toc magit-gitflow macrostep lorem-ipsum livid-mode live-py-mode linum-relative link-hint less-css-mode json-mode js2-refactor js-doc interleave info+ indent-guide hy-mode hungry-delete htmlize hl-todo highlight-parentheses highlight-numbers highlight-indentation hide-comnt help-fns+ helm-themes helm-swoop helm-pydoc helm-projectile helm-mode-manager helm-make helm-gitignore helm-flx helm-descbinds helm-css-scss helm-company helm-c-yasnippet helm-ag google-translate golden-ratio gnuplot gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link gh-md fuzzy flyspell-correct-helm flycheck-pos-tip flx-ido 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-magit evil-lisp-state evil-indent-plus evil-iedit-state evil-exchange evil-escape evil-ediff evil-args evil-anzu eshell-z eshell-prompt-extras esh-help ensime emmet-mode elisp-slime-nav dumb-jump diminish define-word cython-mode company-web company-tern company-statistics company-restclient company-anaconda column-enforce-mode coffee-mode clojure-snippets clj-refactor clean-aindent-mode cider-eval-sexp-fu chruby bundler auto-yasnippet auto-highlight-symbol auto-dictionary auto-compile aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line ac-ispell)))
'(persp-add-buffer-on-after-change-major-mode (quote free))
'(persp-add-buffer-on-find-file t)
'(persp-auto-resume-time -1)
'(persp-nil-name "Default")
'(persp-reset-windows-on-nil-window-conf nil)
'(persp-save-dir "~/.emacs.d/.cache/layouts/")
'(persp-set-ido-hooks t)
'(persp-set-last-persp-for-new-frames nil)
'(pos-tip-background-color "#eee8d5")
'(pos-tip-foreground-color "#586e75")
'(projectile-globally-ignored-directories
(quote
(".idea" ".ensime_cache" ".eunit" ".git" ".hg" ".fslckout" "_FOSSIL_" ".bzr" "_darcs" ".tox" ".svn" ".stack-work" "node_modules")))
'(send-mail-function (quote smtpmail-send-it))
'(smartrep-mode-line-active-bg (solarized-color-blend "#859900" "#eee8d5" 0.2))
'(solarized-distinct-fringe-background t)
'(solarized-high-contrast-mode-line nil)
'(term-default-bg-color "#fdf6e3")
'(term-default-fg-color "#657b83")
'(vc-annotate-background nil)
'(vc-annotate-background-mode nil)
'(vc-annotate-color-map
(quote
((20 . "#dc322f")
(40 . "#c85d17")
(60 . "#be730b")
(80 . "#b58900")
(100 . "#a58e00")
(120 . "#9d9100")
(140 . "#959300")
(160 . "#8d9600")
(180 . "#859900")
(200 . "#669b32")
(220 . "#579d4c")
(240 . "#489e65")
(260 . "#399f7e")
(280 . "#2aa198")
(300 . "#2898af")
(320 . "#2793ba")
(340 . "#268fc6")
(360 . "#268bd2"))))
'(vc-annotate-very-old-color nil)
'(weechat-color-list
(quote
(unspecified "#fdf6e3" "#eee8d5" "#990A1B" "#dc322f" "#546E00" "#859900" "#7B6000" "#b58900" "#00629D" "#268bd2" "#93115C" "#d33682" "#00736F" "#2aa198" "#657b83" "#839496")))
'(xterm-color-names
["#eee8d5" "#dc322f" "#859900" "#b58900" "#268bd2" "#d33682" "#2aa198" "#073642"])
'(xterm-color-names-bright
["#fdf6e3" "#cb4b16" "#93a1a1" "#839496" "#657b83" "#6c71c4" "#586e75" "#002b36"]))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(defun dotspacemacs/emacs-custom-settings ()
"Emacs custom settings.
This is an auto-generated function, do not modify its content directly, use
Emacs customize menu instead.
This function is called at the very end of Spacemacs initialization."
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(cider-cljs-lein-repl
"(do (require 'figwheel-sidecar.repl-api) (figwheel-sidecar.repl-api/start-figwheel!) (figwheel-sidecar.repl-api/cljs-repl))")
'(compilation-ask-about-save nil)
'(compilation-message-face (quote default))
'(compilation-scroll-output (quote first-error))
'(cua-global-mark-cursor-color "#2aa198")
'(cua-normal-cursor-color "#657b83")
'(cua-overwrite-cursor-color "#b58900")
'(cua-read-only-cursor-color "#859900")
'(custom-safe-themes
(quote
("4aee8551b53a43a883cb0b7f3255d6859d766b6c5e14bcb01bed572fcbef4328" "4cf3221feff536e2b3385209e9b9dc4c2e0818a69a1cdb4b522756bcdf4e00a4" default)))
'(debug-on-error nil)
'(evil-want-Y-yank-to-eol t)
'(eyebrowse-mode t)
'(eyebrowse-wrap-around t)
'(fci-rule-color "#eee8d5" t)
'(git-link-open-in-browser t t)
'(highlight-changes-colors (quote ("#d33682" "#6c71c4")))
'(highlight-symbol-colors
(--map
(solarized-color-blend it "#fdf6e3" 0.25)
(quote
("#b58900" "#2aa198" "#dc322f" "#6c71c4" "#859900" "#cb4b16" "#268bd2"))))
'(highlight-symbol-foreground-color "#586e75")
'(highlight-tail-colors
(quote
(("#eee8d5" . 0)
("#B4C342" . 20)
("#69CABF" . 30)
("#69B7F0" . 50)
("#DEB542" . 60)
("#F2804F" . 70)
("#F771AC" . 85)
("#eee8d5" . 100))))
'(hl-bg-colors
(quote
("#DEB542" "#F2804F" "#FF6E64" "#F771AC" "#9EA0E5" "#69B7F0" "#69CABF" "#B4C342")))
'(hl-fg-colors
(quote
("#fdf6e3" "#fdf6e3" "#fdf6e3" "#fdf6e3" "#fdf6e3" "#fdf6e3" "#fdf6e3" "#fdf6e3")))
'(hl-paren-colors (quote ("#2aa198" "#b58900" "#268bd2" "#6c71c4" "#859900")) t)
'(json-reformat:indent-width 2)
'(lsp-before-save-edits t)
'(lsp-highlight-symbol-at-point t)
'(lsp-inhibit-message t)
'(lsp-java-server-install-dir "~/bin/jdt/")
'(magit-diff-use-overlays nil)
'(nrepl-message-colors
(quote
("#dc322f" "#cb4b16" "#b58900" "#546E00" "#B4C342" "#00629D" "#2aa198" "#d33682" "#6c71c4")))
'(olivetti-body-width 85)
'(olivetti-hide-mode-line t)
'(org-agenda-files
(quote
("~/Dropbox/Writing & Notes/org/nike.org" "~/Dropbox/Writing & Notes/org/gift-ideas.org" "~/Dropbox/Writing & Notes/org/reference.org" "~/Dropbox/Writing & Notes/org/refile-beorg.org" "~/Dropbox/Writing & Notes/org/snippets.org" "~/Dropbox/Writing & Notes/org/todo.org")))
'(org-export-backends (quote (ascii html latex md gfm)))
'(package-selected-packages
(quote
(yasnippet-snippets symon string-inflection spaceline-all-the-icons all-the-icons memoize sayid pippel pipenv password-generator overseer org-brain nameless mvn monokai-theme meghanada maven-test-mode magit-svn lsp-python lsp-javascript-typescript typescript-mode json-navigator hierarchy importmagic epc ctable concurrent deferred impatient-mode helm-xref helm-purpose window-purpose imenu-list groovy-mode groovy-imports pcache gradle-mode gitignore-templates evil-org evil-lion evil-goggles evil-cleverparens editorconfig dockerfile-mode docker docker-tramp counsel-projectile counsel swiper ivy company-emacs-eclim eclim clojure-cheatsheet centered-cursor-mode dash font-lock+ dotenv-mode sesman sql-indent csv-mode hive graphql-mode lsp-intellij company-lsp lsp-ui lsp-java lsp-mode ledger-mode flycheck-ledger company-ghc demo-it yaml-mode intero hlint-refactor hindent helm-hoogle haskell-snippets ghc flycheck-haskell company-ghci haskell-mode company-cabal cmm-mode ox-gfm org-tree-slide omnisharp shut-up fancy-narrow edit-indirect olivetti vsts-mode usql csharp-mode ob-ipython powerline tablist pcre2el org-plus-contrib org-mime ht alert log4e gntp markdown-mode skewer-mode simple-httpd json-snatcher json-reformat js2-mode parent-mode projectile request haml-mode gitignore-mode flyspell-correct pos-tip flycheck flx magit magit-popup git-commit ghub let-alist with-editor smartparens iedit anzu evil goto-chg undo-tree sbt-mode scala-mode web-completion-data dash-functional tern restclient know-your-http-well company hydra inflections edn multiple-cursors paredit peg eval-sexp-fu highlight cider seq spinner queue pkg-info clojure-mode epl inf-ruby bind-map bind-key yasnippet packed anaconda-mode pythonic f s helm avy helm-core async auto-complete popup solarized-theme yapfify xterm-color ws-butler winum which-key web-mode web-beautify volatile-highlights vi-tilde-fringe uuidgen use-package toc-org tagedit spaceline smeargle slim-mode shell-pop scss-mode sass-mode rvm ruby-tools ruby-test-mode rubocop rspec-mode robe restclient-helm restart-emacs rbenv rake rainbow-delimiters pyvenv pytest pyenv-mode py-isort pug-mode popwin pip-requirements persp-mode pdf-tools paradox orgit org-present org-pomodoro org-download org-bullets open-junk-file ob-restclient ob-http noflet neotree multi-term mu4e-maildirs-extension mu4e-alert move-text mmm-mode minitest markdown-toc magit-gitflow macrostep lorem-ipsum livid-mode live-py-mode linum-relative link-hint less-css-mode json-mode js2-refactor js-doc interleave info+ indent-guide hy-mode hungry-delete htmlize hl-todo highlight-parentheses highlight-numbers highlight-indentation hide-comnt help-fns+ helm-themes helm-swoop helm-pydoc helm-projectile helm-mode-manager helm-make helm-gitignore helm-flx helm-descbinds helm-css-scss helm-company helm-c-yasnippet helm-ag google-translate golden-ratio gnuplot gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link gh-md fuzzy flyspell-correct-helm flycheck-pos-tip flx-ido 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-magit evil-lisp-state evil-indent-plus evil-iedit-state evil-exchange evil-escape evil-ediff evil-args evil-anzu eshell-z eshell-prompt-extras esh-help ensime emmet-mode elisp-slime-nav dumb-jump diminish define-word cython-mode company-web company-tern company-statistics company-restclient company-anaconda column-enforce-mode coffee-mode clojure-snippets clj-refactor clean-aindent-mode cider-eval-sexp-fu chruby bundler auto-yasnippet auto-highlight-symbol auto-dictionary auto-compile aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line ac-ispell)))
'(persp-add-buffer-on-after-change-major-mode (quote free))
'(persp-add-buffer-on-find-file t)
'(persp-auto-resume-time -1)
'(persp-nil-name "Default")
'(persp-reset-windows-on-nil-window-conf nil)
'(persp-save-dir "~/.emacs.d/.cache/layouts/")
'(persp-set-ido-hooks t)
'(persp-set-last-persp-for-new-frames nil)
'(pos-tip-background-color "#eee8d5")
'(pos-tip-foreground-color "#586e75")
'(projectile-globally-ignored-directories
(quote
(".idea" ".ensime_cache" ".eunit" ".git" ".hg" ".fslckout" "_FOSSIL_" ".bzr" "_darcs" ".tox" ".svn" ".stack-work" "node_modules")))
'(send-mail-function (quote smtpmail-send-it))
'(smartrep-mode-line-active-bg (solarized-color-blend "#859900" "#eee8d5" 0.2))
'(solarized-distinct-fringe-background t)
'(solarized-high-contrast-mode-line nil)
'(term-default-bg-color "#fdf6e3")
'(term-default-fg-color "#657b83")
'(vc-annotate-background nil)
'(vc-annotate-background-mode nil)
'(vc-annotate-color-map
(quote
((20 . "#dc322f")
(40 . "#c85d17")
(60 . "#be730b")
(80 . "#b58900")
(100 . "#a58e00")
(120 . "#9d9100")
(140 . "#959300")
(160 . "#8d9600")
(180 . "#859900")
(200 . "#669b32")
(220 . "#579d4c")
(240 . "#489e65")
(260 . "#399f7e")
(280 . "#2aa198")
(300 . "#2898af")
(320 . "#2793ba")
(340 . "#268fc6")
(360 . "#268bd2"))))
'(vc-annotate-very-old-color nil)
'(weechat-color-list
(quote
(unspecified "#fdf6e3" "#eee8d5" "#990A1B" "#dc322f" "#546E00" "#859900" "#7B6000" "#b58900" "#00629D" "#268bd2" "#93115C" "#d33682" "#00736F" "#2aa198" "#657b83" "#839496")))
'(xterm-color-names
["#eee8d5" "#dc322f" "#859900" "#b58900" "#268bd2" "#d33682" "#2aa198" "#073642"])
'(xterm-color-names-bright
["#fdf6e3" "#cb4b16" "#93a1a1" "#839496" "#657b83" "#6c71c4" "#586e75" "#002b36"]))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
)