Created
September 16, 2016 18:50
-
-
Save djwhitt/14949df3024c60c8d230afb9c350710e 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
(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." | |
;; General | |
(global-hl-line-mode -1) | |
(setq vc-follow-symlinks t) | |
;; Navigation | |
(defun djw-helm-projectile-or-helm-mini () | |
(interactive) | |
(if (projectile-project-p) | |
(helm-projectile) | |
(helm-mini))) | |
(defun djw-neotree-find-project-root () | |
(interactive) | |
(neotree-find (projectile-project-root))) | |
(spacemacs/set-leader-keys "oo" 'djw-helm-projectile-or-helm-mini) | |
(spacemacs/set-leader-keys "ot" 'neotree-find-project-root) | |
(setq projectile-switch-project-action 'djw-neotree-find-project-root | |
neo-theme 'arrow) | |
;; Lisp | |
(add-hook 'smartparens-enabled-hook #'evil-smartparens-mode) | |
(spacemacs/set-leader-keys-for-major-mode 'clojure-mode "," 'lisp-state-toggle-lisp-state) | |
(spacemacs/set-leader-keys-for-major-mode 'clojurescript-mode "," 'lisp-state-toggle-lisp-state) | |
(add-hook 'clojure-mode-hook #'smartparens-strict-mode) | |
(add-hook 'clojurescript-mode-hook #'smartparens-strict-mode) | |
;; Cfengine3 | |
(setq cfengine-parameters-indent '(promise pname 2)) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment