Install and enable Parinfer for Elisp files :D
This commit is contained in:
parent
6069bd1c48
commit
fb02c1f20a
1 changed files with 16 additions and 7 deletions
|
@ -54,7 +54,10 @@ values."
|
||||||
;; wrapped in a layer. If you need some configuration for these
|
;; wrapped in a layer. If you need some configuration for these
|
||||||
;; packages, then consider creating a layer. You can also put the
|
;; packages, then consider creating a layer. You can also put the
|
||||||
;; configuration in `dotspacemacs/user-config'.
|
;; configuration in `dotspacemacs/user-config'.
|
||||||
dotspacemacs-additional-packages '(monokai-theme)
|
dotspacemacs-additional-packages
|
||||||
|
'(
|
||||||
|
monokai-theme
|
||||||
|
parinfer)
|
||||||
;; A list of packages that cannot be updated.
|
;; A list of packages that cannot be updated.
|
||||||
dotspacemacs-frozen-packages '()
|
dotspacemacs-frozen-packages '()
|
||||||
;; A list of packages that will not be installed and loaded.
|
;; 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
|
;; 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.
|
;; the form `(list-type . list-size)`. If nil then it is disabled.
|
||||||
;; Possible values for list-type are:
|
;; Possible values for list-type are:
|
||||||
;; `recents' `bookmarks' `projects' `agenda' `todos'."
|
;; `recents' `bookmarks' `projects' `agenda' `todos'.
|
||||||
;; List sizes may be nil, in which case
|
;; List sizes may be nil, in which case
|
||||||
;; `spacemacs-buffer-startup-lists-length' takes effect.
|
;; `spacemacs-buffer-startup-lists-length' takes effect.
|
||||||
dotspacemacs-startup-lists '((recents . 5)
|
dotspacemacs-startup-lists '((recents . 5)
|
||||||
|
@ -289,8 +292,7 @@ values."
|
||||||
;; `trailing' to delete only the whitespace at end of lines, `changed'to
|
;; `trailing' to delete only the whitespace at end of lines, `changed'to
|
||||||
;; delete only whitespace for changed lines or `nil' to disable cleanup.
|
;; delete only whitespace for changed lines or `nil' to disable cleanup.
|
||||||
;; (default nil)
|
;; (default nil)
|
||||||
dotspacemacs-whitespace-cleanup nil
|
dotspacemacs-whitespace-cleanup nil))
|
||||||
))
|
|
||||||
|
|
||||||
(defun dotspacemacs/user-init ()
|
(defun dotspacemacs/user-init ()
|
||||||
"Initialization function for user code.
|
"Initialization function for user code.
|
||||||
|
@ -298,8 +300,7 @@ It is called immediately after `dotspacemacs/init', before layer configuration
|
||||||
executes.
|
executes.
|
||||||
This function is mostly useful for variables that need to be set
|
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
|
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 ()
|
(defun dotspacemacs/user-config ()
|
||||||
"Configuration function for user code.
|
"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
|
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,
|
explicitly specified that a variable should be set before a package is loaded,
|
||||||
you should place your code here."
|
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
|
(setq custom-file
|
||||||
(concat (or (getenv "XDG_CONFIG_HOME") "~/.config")
|
(concat (or (getenv "XDG_CONFIG_HOME") "~/.config")
|
||||||
|
|
Loading…
Reference in a new issue