From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juha Nieminen Newsgroups: gmane.emacs.help Subject: Re: Setting auto-indentation of braces Date: Mon, 23 Feb 2009 11:47:05 +0200 Organization: FINNET customers Message-ID: <49a27098$0$14890$9b536df3@news.fv.fi> References: <4991527f$0$14913$9b536df3@news.fv.fi> <499936d0$0$14920$9b536df3@news.fv.fi> <499bca7b$0$30006$9b536df3@news.fv.fi> <366A7DB0-A0E6-41DD-97D1-FB7650F4F87E@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1235387198 13899 80.91.229.12 (23 Feb 2009 11:06:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Feb 2009 11:06:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 23 12:07:54 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from mail-forward2.uio.no ([129.240.10.71]) by lo.gmane.org with esmtp (Exim 4.50) id 1LbYf9-0002Es-IF for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Feb 2009 12:07:51 +0100 Original-Received: from exim by mail-out2.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1LbYdp-0006gX-H8 for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Feb 2009 12:06:29 +0100 Original-Received: from mail-mx5.uio.no ([129.240.10.46]) by mail-out2.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1LbYdp-0006gR-G4 for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Feb 2009 12:06:29 +0100 Original-Received: from lists.gnu.org ([199.232.76.165]) by mail-mx5.uio.no with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LbYdm-00036z-TL for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Feb 2009 12:06:29 +0100 Original-Received: from localhost ([127.0.0.1]:47696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbYdl-0004r0-Rp for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Feb 2009 06:06:25 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!feeder.erje.net!feeder2.news.saunalahti.fi!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 8 Original-NNTP-Posting-Host: 83.102.12.46 Original-X-Trace: 1235382425 news.fv.fi 14890 83.102.12.46:49155 Original-X-Complaints-To: abuse@news.fv.fi Original-Xref: news.stanford.edu gnu.emacs.help:166972 X-Mailman-Approved-At: Mon, 23 Feb 2009 06:05:07 -0500 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 X-UiO-Spam-info: not spam, SpamAssassin (score=-4.0, required=5.0, autolearn=disabled, RCVD_IN_DNSWL_MED=-4, uiobl=NO, uiouri=NO) X-UiO-Scanned: 3EC96E4E00812570E3AA5262DE4F0AFA49739022 X-UiO-SPAM-Test: remote_host: 199.232.76.165 spam_score: -39 maxlevel 200 minaction 2 bait 0 mail/h: 5 total 92164 max/h 424 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.emacs.help:62281 Archived-At: Kevin Rodgers kirjoitti: > (global-set-key (kbd "M-7") "{") (global-set-key "M-7" "{") seems to work as well. This is exactly what I was looking for. I didn't know you could give directly a string to global-set-key, rather than a command (as I mentioned, my knowledge of elisp is next to nil).