2018-06-12 21:34:47 +02:00
|
|
|
;;; editor/parinfer/config.el -*- lexical-binding: t; -*-
|
2018-06-09 21:47:26 +10:00
|
|
|
|
|
|
|
(def-package! parinfer
|
2018-06-13 11:51:26 +02:00
|
|
|
:hook ((emacs-lisp-mode clojure-mode scheme-mode lisp-mode) . parinfer-mode)
|
2018-06-09 21:47:26 +10:00
|
|
|
:init
|
|
|
|
(setq parinfer-extensions
|
|
|
|
'(defaults
|
2018-06-12 21:34:47 +02:00
|
|
|
pretty-parens
|
|
|
|
smart-tab
|
|
|
|
smart-yank))
|
|
|
|
(when (featurep! :feature evil +everywhere)
|
|
|
|
(push 'evil parinfer-extensions))
|
2018-06-09 21:47:26 +10:00
|
|
|
:config
|
2018-06-11 10:10:34 +10:00
|
|
|
(map! :map parinfer-mode-map
|
2018-06-20 22:58:05 +02:00
|
|
|
"\"" nil ; smartparens handles this
|
2018-12-23 23:54:27 -05:00
|
|
|
:i "<tab>" #'parinfer-smart-tab:dwim-right-or-complete
|
2018-06-09 21:47:26 +10:00
|
|
|
:i "<backtab>" #'parinfer-smart-tab:dwim-left
|
|
|
|
:localleader
|
2018-12-23 23:54:27 -05:00
|
|
|
:desc "Toggle parinfer-mode" "m" #'parinfer-toggle-mode))
|