Merge pull request #994 from qleguennec/feature-editor/lispy
Feature editor/lispy
This commit is contained in:
commit
85ea30377f
4 changed files with 35 additions and 26 deletions
|
@ -1,6 +1,6 @@
|
|||
#+TITLE: :editor lispyville
|
||||
#+TITLE: :editor lispy
|
||||
|
||||
This modules adds [[https://github.com/noctuid/lispyville][lispyville]] key functionality in Lisp languages.
|
||||
This modules adds [[https://github.com/noctuid/lispyville][lispy]] key functionality in Lisp languages.
|
||||
|
||||
This includes:
|
||||
|
||||
|
@ -12,6 +12,9 @@ This includes:
|
|||
- [[http://lfe.io/][LFE]]
|
||||
- Clojure
|
||||
|
||||
If evil is enabled, lispyville would also be activated for every mode where
|
||||
lispy is active
|
||||
|
||||
The default key themes that are set are as follows:
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
28
modules/editor/lispy/config.el
Normal file
28
modules/editor/lispy/config.el
Normal file
|
@ -0,0 +1,28 @@
|
|||
;;; editor/lispy/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! lispy
|
||||
:hook ((common-lisp-mode . lispy-mode)
|
||||
(emacs-lisp-mode . lispy-mode)
|
||||
(scheme-mode . lispy-mode)
|
||||
(racket-mode . lispy-mode)
|
||||
(hy-mode . lispy-mode)
|
||||
(lfe-mode . lispy-mode)
|
||||
(clojure-mode . lispy-mode))
|
||||
:config
|
||||
(add-hook 'lispy-mode-hook #'turn-off-smartparens-mode))
|
||||
|
||||
(def-package! lispyville
|
||||
:when (featurep! :feature evil)
|
||||
:hook (lispy-mode . lispyville-mode)
|
||||
:config
|
||||
(lispyville-set-key-theme
|
||||
'((operators normal)
|
||||
c-w
|
||||
(prettify insert)
|
||||
(atom-movement normal visual)
|
||||
slurp/barf-lispy
|
||||
(wrap normal insert)
|
||||
additional
|
||||
additional-insert
|
||||
(additional-wrap normal insert)
|
||||
(escape insert))))
|
|
@ -1,5 +1,7 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; editor/lispyville/packages.el
|
||||
|
||||
(package! lispy)
|
||||
|
||||
(when (featurep! :feature evil)
|
||||
(package! lispyville))
|
|
@ -1,24 +0,0 @@
|
|||
;;; editor/lispyville/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! lispyville
|
||||
:when (featurep! :feature evil)
|
||||
:hook ((common-lisp-mode . lispyville-mode)
|
||||
(emacs-lisp-mode . lispyville-mode)
|
||||
(scheme-mode . lispyville-mode)
|
||||
(racket-mode . lispyville-mode)
|
||||
(hy-mode . lispyville-mode)
|
||||
(lfe-mode . lispyville-mode)
|
||||
(clojure-mode . lispyville-mode))
|
||||
:config
|
||||
(add-hook 'lispyville-mode-hook #'turn-off-smartparens-mode)
|
||||
(lispyville-set-key-theme
|
||||
'((operators normal)
|
||||
c-w
|
||||
(prettify insert)
|
||||
(atom-movement normal visual)
|
||||
slurp/barf-lispy
|
||||
(wrap normal insert)
|
||||
additional
|
||||
additional-insert
|
||||
(additional-wrap normal insert)
|
||||
(escape insert))))
|
Loading…
Add table
Add a link
Reference in a new issue