Merge pull request #670 from ar1a/parinfer

:editor parinfer for lisp editing
This commit is contained in:
Henrik Lissner 2018-06-12 21:36:46 +02:00 committed by GitHub
commit 63a8c30765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 0 deletions

View File

@ -43,6 +43,9 @@
;unicode ; extended unicode support for various languages
vi-tilde-fringe ; fringe tildes to mark beyond EOB
window-select ; visually switch windows
:editor
;parinfer ; turn lisp into python, sort of
:emacs
dired ; making dired pretty [functional]

View File

@ -0,0 +1,18 @@
;;; 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))

View File

@ -0,0 +1,4 @@
;; -*- no-byte-compile: t; -*-
;;; editor/parinfer/packages.el
(package! parinfer)