From 011f317d2faf190cfdd4074e1ada771acab4c975 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 18 May 2013 11:55:06 +0100 Subject: Emacs: Remove electrify-return-if-match and replace with paredit keybindings in lisp-modes --- emacs/elisp/electric-return.el | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 emacs/elisp/electric-return.el (limited to 'emacs/elisp/electric-return.el') diff --git a/emacs/elisp/electric-return.el b/emacs/elisp/electric-return.el deleted file mode 100644 index fcbebb3c..00000000 --- a/emacs/elisp/electric-return.el +++ /dev/null @@ -1,16 +0,0 @@ -(defvar electrify-return-match - "[\]}\)\"]" - "If this regexp matches the text after the cursor, do an \"electric\" - return.") -(defun electrify-return-if-match (arg) - "If the text after the cursor matches `electrify-return-match' then - open and indent an empty line between the cursor and the text. Move the - cursor to the new line." - (interactive "P") - (let ((case-fold-search nil)) - (if (looking-at electrify-return-match) - (save-excursion (newline-and-indent))) - (newline arg) - (indent-according-to-mode))) -;; Using local-set-key in a mode-hook is a better idea. -;(global-set-key (kbd "RET") 'electrify-return-if-match) \ No newline at end of file -- cgit 1.4.1