<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikemacs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=74.50.56.165</id>
	<title>WikEmacs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wikemacs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=74.50.56.165"/>
	<link rel="alternate" type="text/html" href="https://wikemacs.org/wiki/Special:Contributions/74.50.56.165"/>
	<updated>2026-04-20T02:02:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wikemacs.org/index.php?title=Paredit-mode&amp;diff=4815</id>
		<title>Paredit-mode</title>
		<link rel="alternate" type="text/html" href="https://wikemacs.org/index.php?title=Paredit-mode&amp;diff=4815"/>
		<updated>2013-07-08T14:12:41Z</updated>

		<summary type="html">&lt;p&gt;74.50.56.165: Suggest enable-paredit-mode rather than (lambda () (paredit-mode +1)). Fix indentation. Call the quick reference what it is; don't dignify it by calling it `documentation'.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Package&lt;br /&gt;
|name=Paredit&lt;br /&gt;
|description=structural editing of S-expression data&lt;br /&gt;
|author=Taylor Campbell&lt;br /&gt;
|maintainer=Taylor Campbell&lt;br /&gt;
|source=http://mumble.net/~campbell/emacs/paredit.el&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
'''Paredit''' is a minor mode for performing structured editing of S-expression data. The typical example of this would be Lisp or Scheme source code.&lt;br /&gt;
&lt;br /&gt;
Paredit helps '''keep parentheses balanced''' and adds many keys for moving S-expressions and moving around in S-expressions.&lt;br /&gt;
&lt;br /&gt;
== Basic setup ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lisp&amp;quot;&amp;gt;&lt;br /&gt;
(autoload 'enable-paredit-mode &amp;quot;paredit&amp;quot;&lt;br /&gt;
  &amp;quot;Turn on pseudo-structural editing of Lisp code.&amp;quot;&lt;br /&gt;
  t)&lt;br /&gt;
(add-hook 'emacs-lisp-mode-hook       'enable-paredit-mode)&lt;br /&gt;
(add-hook 'lisp-mode-hook             'enable-paredit-mode)&lt;br /&gt;
(add-hook 'lisp-interaction-mode-hook 'enable-paredit-mode)&lt;br /&gt;
(add-hook 'scheme-mode-hook           'enable-paredit-mode)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Helpful keybindings ==&lt;br /&gt;
&lt;br /&gt;
; {{Keys|C-M-f}}&lt;br /&gt;
: Forward sexp&lt;br /&gt;
&lt;br /&gt;
; {{Keys|C-M-b}}&lt;br /&gt;
: Backward sexp&lt;br /&gt;
&lt;br /&gt;
== Common Customization ==&lt;br /&gt;
&lt;br /&gt;
=== SLIME REPL ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lisp&amp;quot;&amp;gt;&lt;br /&gt;
(add-hook 'slime-repl-mode-hook 'enable-paredit-mode)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SLIME’s REPL has the very annoying habit of grabbing DEL which interferes with paredit’s normal operation. To alleviate this problem use the following code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lisp&amp;quot;&amp;gt;&lt;br /&gt;
;; Stop SLIME's REPL from grabbing DEL,&lt;br /&gt;
;; which is annoying when backspacing over a '('&lt;br /&gt;
(defun override-slime-repl-bindings-with-paredit ()&lt;br /&gt;
  (define-key slime-repl-mode-map&lt;br /&gt;
    (read-kbd-macro paredit-backward-delete-key)&lt;br /&gt;
    nil))&lt;br /&gt;
(add-hook 'slime-repl-mode-hook 'override-slime-repl-bindings-with-paredit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[autopair-mode]]&lt;br /&gt;
* [[rainbow delimiters]]&lt;br /&gt;
* [[electric-pair-mode]]&lt;br /&gt;
&lt;br /&gt;
== Project Pages ==&lt;br /&gt;
&lt;br /&gt;
* [http://mumble.net/~campbell/emacs/paredit.el Stable Version]&lt;br /&gt;
* [http://mumble.net/~campbell/emacs/paredit-beta.el Beta Version]&lt;br /&gt;
* [http://mumble.net/~campbell/emacs/paredit.html Quick reference]&lt;br /&gt;
&lt;br /&gt;
== Tutorial Pages ==&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
&lt;br /&gt;
* [http://emacswiki.org/emacs/PareditCheatsheet Cheat Sheet]&lt;br /&gt;
* [http://www.slideshare.net/mudphone/paredit-preso Paredit Preso]&lt;br /&gt;
&lt;br /&gt;
[[Category:Lisp]][[Category:Convenience]][[Category:Third Party Package]]&lt;/div&gt;</summary>
		<author><name>74.50.56.165</name></author>
	</entry>
</feed>