doomemacs/modules/editor/parinfer/config.el
Henrik Lissner 63552338ec
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.
2018-06-12 21:34:47 +02:00

18 lines
584 B
EmacsLisp

;;; editor/parinfer/config.el -*- lexical-binding: t; -*-
(def-package! parinfer
:hook ((emacs-lisp clojure-mode common-lisp scheme lisp) . parinfer-mode)
:init
(setq parinfer-extensions
'(defaults
pretty-parens
smart-tab
smart-yank))
(when (featurep! :feature evil +everywhere)
(push 'evil parinfer-extensions))
:config
(map! :map parinfer-mode-map
:i "<tab>" #'parinfer-smart-tab:dwim-right-or-complete
:i "<backtab>" #'parinfer-smart-tab:dwim-left
:localleader
:nv "m" #'parinfer-toggle-mode))