Install and enable Parinfer for Elisp files :D

This commit is contained in:
Danielle McLean 2018-05-22 16:26:14 +10:00
parent 6069bd1c48
commit fb02c1f20a
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240

View file

@ -54,7 +54,10 @@ values."
;; 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 '(monokai-theme)
dotspacemacs-additional-packages
'(
monokai-theme
parinfer)
;; A list of packages that cannot be updated.
dotspacemacs-frozen-packages '()
;; A list of packages that will not be installed and loaded.
@ -114,7 +117,7 @@ values."
;; List of items to show in startup buffer or an association list of
;; the form `(list-type . list-size)`. If nil then it is disabled.
;; Possible values for list-type are:
;; `recents' `bookmarks' `projects' `agenda' `todos'."
;; `recents' `bookmarks' `projects' `agenda' `todos'.
;; List sizes may be nil, in which case
;; `spacemacs-buffer-startup-lists-length' takes effect.
dotspacemacs-startup-lists '((recents . 5)
@ -289,8 +292,7 @@ values."
;; `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 nil
))
dotspacemacs-whitespace-cleanup nil))
(defun dotspacemacs/user-init ()
"Initialization function for user code.
@ -298,8 +300,7 @@ 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."
)
`dotspacemacs/user-config' first.")
(defun dotspacemacs/user-config ()
"Configuration function for user code.
@ -308,7 +309,15 @@ 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."
(setq-default evil-escape-key-sequence "jj"))
(setq-default evil-escape-key-sequence "jj")
(setq-default parinfer-extensions
'(
defaults
pretty-parens
evil
smart-tab
smart-yank))
(add-hook 'emacs-lisp-mode-hook #'parinfer-mode))
(setq custom-file
(concat (or (getenv "XDG_CONFIG_HOME") "~/.config")