mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 11:30:23 +10:00
20 lines
660 B
EmacsLisp
20 lines
660 B
EmacsLisp
;;; editor/parinfer/config.el -*- lexical-binding: t; -*-
|
|
|
|
(use-package! parinfer
|
|
:hook ((emacs-lisp-mode clojure-mode scheme-mode lisp-mode) . parinfer-mode)
|
|
:init
|
|
(setq parinfer-extensions
|
|
'(defaults
|
|
pretty-parens
|
|
smart-tab
|
|
smart-yank))
|
|
(when (featurep! :editor evil +everywhere)
|
|
(push 'evil parinfer-extensions))
|
|
:config
|
|
(map! :map parinfer-mode-map
|
|
"\"" nil ; smartparens handles this
|
|
:i "<tab>" #'parinfer-smart-tab:dwim-right-or-complete
|
|
:i "<backtab>" #'parinfer-smart-tab:dwim-left
|
|
:localleader
|
|
:desc "Toggle parinfer-mode" "m" #'parinfer-toggle-mode))
|