Conform editor/parinfer to Doom conventions
+ Use evil +everywhere flag for universal evil integration, + Use :hook instead of `add-hook!` and implicit lambda, + Fix path in header.
This commit is contained in:
parent
db45248adf
commit
63552338ec
1 changed files with 7 additions and 14 deletions
|
@ -1,22 +1,15 @@
|
||||||
;;; lang/emacs-lisp/+parinfer.el -*- lexical-binding: t; -*-
|
;;; editor/parinfer/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
|
||||||
(def-package! parinfer
|
(def-package! parinfer
|
||||||
:commands (parinfer-mode)
|
:hook ((emacs-lisp clojure-mode common-lisp scheme lisp) . parinfer-mode)
|
||||||
:init
|
:init
|
||||||
(add-hook! (emacs-lisp-mode
|
|
||||||
clojure-mode
|
|
||||||
common-lisp-mode
|
|
||||||
scheme-mode
|
|
||||||
lisp-mode)
|
|
||||||
(parinfer-mode))
|
|
||||||
(setq parinfer-extensions
|
(setq parinfer-extensions
|
||||||
'(defaults
|
'(defaults
|
||||||
pretty-parens
|
pretty-parens
|
||||||
smart-tab
|
smart-tab
|
||||||
smart-yank))
|
smart-yank))
|
||||||
(if (featurep! :feature evil)
|
(when (featurep! :feature evil +everywhere)
|
||||||
(push 'evil parinfer-extensions))
|
(push 'evil parinfer-extensions))
|
||||||
:config
|
:config
|
||||||
(map! :map parinfer-mode-map
|
(map! :map parinfer-mode-map
|
||||||
:i "<tab>" #'parinfer-smart-tab:dwim-right-or-complete
|
:i "<tab>" #'parinfer-smart-tab:dwim-right-or-complete
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue