From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: brakjoller@hotmail.com (Barman Brakjoller) Newsgroups: gmane.emacs.help Subject: Re: key bindings Date: 13 Jun 2003 01:57:39 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1c58a7c3.0306130057.39b7a251@posting.google.com> References: NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1055494754 20841 80.91.224.249 (13 Jun 2003 08:59:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2003 08:59:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 13 10:59:11 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19QkNl-0005Kr-00 for ; Fri, 13 Jun 2003 10:58:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19QkQC-0003pe-TQ for gnu-help-gnu-emacs@m.gmane.org; Fri, 13 Jun 2003 05:00:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 193.41.170.225 Original-X-Trace: posting.google.com 1055494659 3402 127.0.0.1 (13 Jun 2003 08:57:39 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 13 Jun 2003 08:57:39 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:114426 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10919 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10919 > Still trying to get two spaces between periods and > sentences; trying another approach now using key > bindings. I've tried the following in my dotfile: > > (global-set-key "." ". ") > > But, this does not work. I get the following error in > the mode-line: How about something like this? Too ugly: (defun one-dot-and-two-spaces () (interactive) (insert ". ")) (local-set-key "." 'one-dot-and-two-spaces) Works here.