Skip to content

Instantly share code, notes, and snippets.

@semperos
Last active November 27, 2017 21:45
Show Gist options
  • Save semperos/3c07f72e1b28e19b1688bca7e9396b39 to your computer and use it in GitHub Desktop.
Save semperos/3c07f72e1b28e19b1688bca7e9396b39 to your computer and use it in GitHub Desktop.
Spacemacs dotspacemacs/user-config
;; In dotspacemacs/layers:
dotspacemacs-configuration-layers
'(
better-defaults
clojure
emacs-lisp
git
org
ivy
)
;; Later:
(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 your code here."
(spacemacs/set-leader-keys "a e" 'eshell)
(spacemacs/set-leader-keys "a i" 'ielm)
(add-hook 'prog-mode-hook 'turn-on-smartparens-strict-mode)
(define-key clojure-mode-map (kbd "C-c C-s") #'sp-splice-sexp)
(define-key clojure-mode-map (kbd "C-)") #'sp-forward-slurp-sexp)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment