lang/emacs-lisp: Add +parinfer feature

This commit is contained in:
Aria Edmonds 2018-06-09 21:47:26 +10:00
parent 7e7b6fd8a6
commit 29ea01b772
No known key found for this signature in database
GPG key ID: 1F7306588FE1F239
4 changed files with 29 additions and 1 deletions

View file

@ -75,7 +75,8 @@
;erlang ; an elegant language for a more civilized age
;elixir ; erlang done right
;elm ; care for a cup of TEA?
emacs-lisp ; drown in parentheses
(emacs-lisp ; drown in parentheses
+parinfer) ; A handy addon to sort of turn lisp into python <https://shaunlebron.github.io/parinfer/>
;ess ; emacs speaks statistics
;go ; the hipster dialect
;(haskell +intero) ; a language that's lazier than I am

View file

@ -0,0 +1,22 @@
;;; lang/emacs-lisp/+parinfer.el -*- lexical-binding: t; -*-
(def-package! parinfer
:commands (parinfer-mode)
:init
(add-hook! emacs-lisp-mode
(yas-minor-mode -1)
(parinfer-mode))
(setq parinfer-extensions
'(defaults
pretty-parens
smart-tab
smart-yank))
(if (featurep! :feature evil)
(push 'evil parinfer-extensions))
:config
(map! :map emacs-lisp-mode-map
:i "<tab>" #'parinfer-smart-tab:dwim-right
:i "<backtab>" #'parinfer-smart-tab:dwim-left
:localleader
:nv "m" #'parinfer-toggle-mode))

View file

@ -116,3 +116,5 @@
(def-project-mode! +emacs-lisp-ert-mode
:modes (emacs-lisp-mode)
:match "/test[/-].+\\.el$")
(when (featurep! +parinfer) (load! "+parinfer"))

View file

@ -9,3 +9,6 @@
(when (featurep! :feature syntax-checker)
(package! flycheck-cask))
(when (featurep! +parinfer)
(package! parinfer))