mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 19:40:24 +10:00
Moving to Doom Emacs!
This commit is contained in:
23
.emacs.d/modules/editor/parinfer/README.org
Normal file
23
.emacs.d/modules/editor/parinfer/README.org
Normal file
@@ -0,0 +1,23 @@
|
||||
#+TITLE: editor/parinfer
|
||||
#+DATE: June 9, 2018
|
||||
#+SINCE: v2.1
|
||||
#+STARTUP: inlineimages
|
||||
|
||||
* Table of Contents :TOC:
|
||||
- [[#description][Description]]
|
||||
- [[#module-flags][Module Flags]]
|
||||
- [[#packages][Packages]]
|
||||
|
||||
* Description
|
||||
Parinfer is a proof-of-concept editor mode for Lisp programming languages. It
|
||||
will infer some changes to keep Parens and Indentation inline with one another.
|
||||
|
||||
https://raw.githubusercontent.com/DogLooksGood/parinfer-mode/a7c041454e05ec2b88333a73e72debaa671ed596/images/demo.gif
|
||||
|
||||
More information can be found about it [[https://shaunlebron.github.io/parinfer/][in the project's documentation]].
|
||||
|
||||
** Module Flags
|
||||
This module provides no flags.
|
||||
|
||||
** Packages
|
||||
+ [[https://github.com/DogLooksGood/parinfer-mode][parinfer]]
|
||||
19
.emacs.d/modules/editor/parinfer/config.el
Normal file
19
.emacs.d/modules/editor/parinfer/config.el
Normal file
@@ -0,0 +1,19 @@
|
||||
;;; editor/parinfer/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(use-package! parinfer
|
||||
:hook ((emacs-lisp-mode clojure-mode scheme-mode lisp-mode) . parinfer-mode)
|
||||
:init
|
||||
(setq parinfer-extensions
|
||||
'(defaults
|
||||
pretty-parens
|
||||
smart-tab
|
||||
smart-yank))
|
||||
(when (featurep! :editor evil +everywhere)
|
||||
(push 'evil parinfer-extensions))
|
||||
:config
|
||||
(map! :map parinfer-mode-map
|
||||
"\"" nil ; smartparens handles this
|
||||
:i "<tab>" #'parinfer-smart-tab:dwim-right-or-complete
|
||||
:i "<backtab>" #'parinfer-smart-tab:dwim-left
|
||||
:localleader
|
||||
:desc "Toggle parinfer-mode" "m" #'parinfer-toggle-mode))
|
||||
14
.emacs.d/modules/editor/parinfer/packages.el
Normal file
14
.emacs.d/modules/editor/parinfer/packages.el
Normal file
@@ -0,0 +1,14 @@
|
||||
;; -*- no-byte-compile: t; -*-
|
||||
;;; editor/parinfer/packages.el
|
||||
|
||||
(when (featurep! :editor evil)
|
||||
;; Parinfer uses `evil-define-key' without loading evil, so if evil is
|
||||
;; installed *after* parinfer, parinfer will throw up void-function errors.
|
||||
;; because evil-define-key (a macro) wasn't expanded at compile-time. So we
|
||||
;; make sure evil is installed before parinfer...
|
||||
(package! evil)
|
||||
;; ...and that it can see `evil-define-key' if evil was installed in a
|
||||
;; separate session:
|
||||
(autoload 'evil-define-key "evil-core" nil nil 'macro))
|
||||
|
||||
(package! parinfer)
|
||||
Reference in New Issue
Block a user