Skip to content

andreas-roehler/simple-paren

Repository files navigation

CircleCI simple-paren

Install

See INSTALL.md

Insert paired delimiters

With C-u resp active region with wrap symbols

Examples, cursor after pipe-symbol:

(defun foo1 |       ==> (defun foo1 () 

With active region until end of region

|interactive        ==> (interactive)

keep padding:

| foo               ==> ( foo ) 
Works also with reachable unary delimiters:
|interactive      M-x simple-paren-colon RET  ==> :interactive:
Mathematicians resp. logicians might use

M-x simple-paren-ogham-feather-mark RET ==> ᚛᚜

or

M-x simple-paren-mathematical-double-angle-bracket RET ==> ⟪⟫

M-x simple-paren- TAB should display what's implemented.

Easy to extend:

If a command inserting mathematical white square brackets wouldn't exist:

(defun simple-paren-mathematical-white-square-bracket (arg)
  (interactive "*P")
  (simple-paren--intern ?⟦  ?⟧ arg))
The mode provides keys like that:
[(super \()] 'simple-paren-parentize

[(super \/)] 'simple-paren-slash)

[(super \<)] 'simple-paren-lesser-than)

Conceived for a deliberately non-electric use

About

Insert paired delimiters, wrap symbols in front maybe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published