Add parinfer layer
This commit is contained in:
parent
d83fafb2cb
commit
4aadec376d
|
@ -0,0 +1,26 @@
|
|||
#+TITLE: parinfer layer
|
||||
|
||||
# The maximum height of the logo should be 200 pixels.
|
||||
[[file:img/parinfer.png]]
|
||||
|
||||
# TOC links should be GitHub style anchors.
|
||||
* Table of Contents :TOC_4_gh:noexport:
|
||||
- [[#description][Description]]
|
||||
- [[#install][Install]]
|
||||
- [[#key-bindings][Key bindings]]
|
||||
|
||||
* Description
|
||||
This layer provide parinfer,
|
||||
which simpler lisp editing without memorizing extra keybindings.
|
||||
|
||||
* Install
|
||||
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
|
||||
add =parinfer= to the existing =dotspacemacs-configuration-layers= list in this
|
||||
file.
|
||||
|
||||
* Key bindings
|
||||
|
||||
| Key Binding | Description |
|
||||
|-------------+-------------------------------------------|
|
||||
| ~SPC t P~ | Toggle between parinfer Indent/Paren Mode |
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
|
@ -0,0 +1,35 @@
|
|||
;;; packages.el --- parinfer layer packages file for Spacemacs.
|
||||
;;
|
||||
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
|
||||
;;
|
||||
;; Author: DogLooksGood <DogLooksGood@rMBP>
|
||||
;; URL: https://github.com/syl20bnr/spacemacs
|
||||
;;
|
||||
;; This file is not part of GNU Emacs.
|
||||
;;
|
||||
;;; License: GPLv3
|
||||
|
||||
(defconst parinfer-packages
|
||||
'(parinfer))
|
||||
|
||||
(defun parinfer/init-parinfer ()
|
||||
(use-package parinfer
|
||||
:defer t
|
||||
:diminish parinfer-mode
|
||||
:init
|
||||
(progn
|
||||
(add-hook 'emacs-lisp-mode-hook 'parinfer-mode)
|
||||
(add-hook 'clojure-mode-hook 'parinfer-mode)
|
||||
(add-hook 'common-lisp-mode-hook 'parinfer-mode)
|
||||
(add-hook 'scheme-mode-hook 'parinfer-mode)
|
||||
(add-hook 'lisp-mode-hook 'parinfer-mode)
|
||||
(spacemacs|add-toggle parinfer-indent
|
||||
:evil-leader "tP"
|
||||
:documentation "Enable Parinfer Indent Mode."
|
||||
:if (bound-and-true-p parinfer-mode)
|
||||
:status (eq parinfer--mode 'indent)
|
||||
:on (parinfer-toggle-mode)
|
||||
:off (parinfer-toggle-mode))
|
||||
(setq parinfer-extensions '(defaults pretty-parens evil smart-yank)))))
|
||||
|
||||
;;; packages.el ends here
|
Loading…
Reference in New Issue