2018-06-12 21:34:47 +02:00
|
|
|
;;; editor/parinfer/config.el -*- lexical-binding: t; -*-
|
2018-06-09 21:47:26 +10:00
|
|
|
|
2019-07-23 12:44:03 +02:00
|
|
|
(use-package! parinfer
|
2020-02-22 18:16:25 -06:00
|
|
|
:hook ((emacs-lisp-mode
|
|
|
|
clojure-mode
|
|
|
|
scheme-mode
|
|
|
|
lisp-mode
|
|
|
|
racket-mode
|
|
|
|
hy-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))
|
2019-04-21 19:59:44 -04:00
|
|
|
(when (featurep! :editor evil +everywhere)
|
2018-06-12 21:34:47 +02:00
|
|
|
(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))
|