From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Help with keybinding to delete between {} Date: Fri, 14 Dec 2007 03:43:33 -0800 (PST) Organization: http://groups.google.com Message-ID: <1654b87e-715a-40eb-96ee-2a0769d1fa58@d4g2000prg.googlegroups.com> References: <598472b5-c766-483a-93e5-15b31bfd880f@b40g2000prf.googlegroups.com> <922740c0-88f0-42c0-a373-d7a28c354c4a@s12g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1197636071 24964 80.91.229.12 (14 Dec 2007 12:41:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Dec 2007 12:41:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 14 13:41:22 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J39qx-0004Kc-6T for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Dec 2007 13:41:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J39qe-0007ak-Qp for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Dec 2007 07:41:00 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d4g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: 69.236.84.103 Original-X-Trace: posting.google.com 1197632614 18522 127.0.0.1 (14 Dec 2007 11:43:34 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 14 Dec 2007 11:43:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d4g2000prg.googlegroups.com; posting-host=69.236.84.103; posting-account=qPxGtQkAAADb6PWdLGiWVucht1ZDR6fn User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/523.12 (KHTML, like Gecko) Version/3.0.4 Safari/523.12, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:154657 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50084 Archived-At: today i took some closer look at cursor moving commands for editing lisp code. `C-M-n' Move forward over a parenthetical group (`forward-list'). `C-M-p' Move backward over a parenthetical group (`backward- list'). `C-M-u' Move up in parenthesis structure (`backward-up-list'). `C-M-d' Move down in parenthesis structure (`down-list'). `C-M-f' Move forward over a balanced expression (`forward-sexp'). `C-M-b' Move backward over a balanced expression (`backward- sexp'). `C-M-k' Kill balanced expression forward (`kill-sexp'). `C-M-' Put mark after following expression (`mark-sexp'). which i was aware for about a year but never really used. I think they are FANTASTIC. Previously i thought the extend-selection idea i had was more powerful, but not really. (the extend-selection idea is simply backward-up-list followed by mark-sexp) The keybinding choices are pretty bad though. I now set them thus: (global-set-key (kbd "M-") 'backward-up-list) (global-set-key (kbd "M-") 'down-list) (global-set-key (kbd "M-") 'backward-sexp) (global-set-key (kbd "M-") 'forward-sexp) (global-set-key (kbd "M-S-") 'backward-list) (global-set-key (kbd "M-S-") 'forward-list) Xah xah@xahlee.org $B-t(B http://xahlee.org/