Paste number 10157: swap-brackets-parens

Paste number 10157: swap-brackets-parens
Pasted by: pjb
When:16 years, 2 months ago
Share:Tweet this! | http://paste.lisp.org/+7U5
Channel:#lisp
Paste contents:
Raw Source | XML | Display As
(defun swap-brackets-parens ()
  (interactive)
  (keyboard-translate ?\( ?\[)
  (keyboard-translate ?\) ?\])
  (keyboard-translate ?\[ ?\()
  (keyboard-translate ?\] ?\)));;swap-brackets-parens

(defun normal-brackets-parens ()
  (interactive)
  (keyboard-translate ?\( ?\()
  (keyboard-translate ?\) ?\))
  (keyboard-translate ?\[ ?\[)
  (keyboard-translate ?\] ?\]));;normal-brackets-parens

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.