summaryrefslogtreecommitdiff
path: root/paredit.el
diff options
context:
space:
mode:
Diffstat (limited to 'paredit.el')
-rw-r--r--paredit.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/paredit.el b/paredit.el
index 67febc9..d8d01d6 100644
--- a/paredit.el
+++ b/paredit.el
@@ -109,6 +109,16 @@
;;;
;;; (foo (bar | baz) quux) C-<right> (foo (bar | baz quux))
;;;
+;;; Note: Paredit Mode is not compatible with Electric Indent Mode.
+;;; Use one or the other, not both. If you want RET to auto-indent and
+;;; C-j to just insert newline in Paredit Mode, simply rebind the keys
+;;; with the following fragment in your .emacs file:
+;;;
+;;; (eval-after-load 'paredit
+;;; '(progn
+;;; (define-key paredit-mode-map (kbd "RET") 'paredit-newline)
+;;; (define-key paredit-mode-map (kbd "C-j") nil)))
+;;;
;;; Some paredit commands automatically reindent code. When they do,
;;; they try to indent as locally as possible, to avoid interfering
;;; with any indentation you might have manually written. Only the