lang/emacs-lisp: Add +parinfer feature
This commit is contained in:
parent
7e7b6fd8a6
commit
29ea01b772
4 changed files with 29 additions and 1 deletions
|
@ -75,7 +75,8 @@
|
||||||
;erlang ; an elegant language for a more civilized age
|
;erlang ; an elegant language for a more civilized age
|
||||||
;elixir ; erlang done right
|
;elixir ; erlang done right
|
||||||
;elm ; care for a cup of TEA?
|
;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
|
;ess ; emacs speaks statistics
|
||||||
;go ; the hipster dialect
|
;go ; the hipster dialect
|
||||||
;(haskell +intero) ; a language that's lazier than I am
|
;(haskell +intero) ; a language that's lazier than I am
|
||||||
|
|
22
modules/lang/emacs-lisp/+parinfer.el
Normal file
22
modules/lang/emacs-lisp/+parinfer.el
Normal 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))
|
|
@ -116,3 +116,5 @@
|
||||||
(def-project-mode! +emacs-lisp-ert-mode
|
(def-project-mode! +emacs-lisp-ert-mode
|
||||||
:modes (emacs-lisp-mode)
|
:modes (emacs-lisp-mode)
|
||||||
:match "/test[/-].+\\.el$")
|
:match "/test[/-].+\\.el$")
|
||||||
|
|
||||||
|
(when (featurep! +parinfer) (load! "+parinfer"))
|
||||||
|
|
|
@ -9,3 +9,6 @@
|
||||||
|
|
||||||
(when (featurep! :feature syntax-checker)
|
(when (featurep! :feature syntax-checker)
|
||||||
(package! flycheck-cask))
|
(package! flycheck-cask))
|
||||||
|
|
||||||
|
(when (featurep! +parinfer)
|
||||||
|
(package! parinfer))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue