diff options
author | Taylor R Campbell <campbell@mumble.net> | 2009-07-03 19:52:21 +0000 |
---|---|---|
committer | Taylor R Campbell <campbell@mumble.net> | 2009-07-03 19:52:21 +0000 |
commit | 0d7a39d6bd8152589a22118e596bffd4c8ffc248 (patch) | |
tree | 19ca2ab6aafde6b8d7c3dbb8b96a4b8efbb24852 | |
parent | a386bdf2b80aca53e648fcf2497353d6713a5c11 (diff) |
Un-deprecate `enable-paredit-mode' and `disable-paredit-mode'.
darcs-hash:20090703195221-00fcc-733a86154d8ff7d50b99cb63a05b8520a26da265
-rw-r--r-- | paredit.el | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -60,7 +60,7 @@ ;;; Toggle Paredit Mode with `M-x paredit-mode RET', or enable it ;;; always in a major mode `M' (e.g., `lisp' or `scheme') with: ;;; -;;; (add-hook M-mode-hook (lambda () (paredit-mode +1))) +;;; (add-hook M-mode-hook 'enable-paredit-mode) ;;; ;;; Customize paredit using `eval-after-load': ;;; @@ -262,19 +262,13 @@ Paredit behaves badly if parentheses are imbalanced, so exercise (error (setq paredit-mode nil) (signal (car condition) (cdr condition))))))) -;;; Old functions from when there was a different mode for emacs -nw. - (defun enable-paredit-mode () - "Turn on pseudo-structural editing of Lisp code. - -Deprecated: use `paredit-mode' instead." + "Turn on pseudo-structural editing of Lisp code." (interactive) (paredit-mode +1)) (defun disable-paredit-mode () - "Turn off pseudo-structural editing of Lisp code. - -Deprecated: use `paredit-mode' instead." + "Turn off pseudo-structural editing of Lisp code." (interactive) (paredit-mode -1)) |