From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rodney Sparapani Newsgroups: gmane.emacs.help Subject: Re: emacs on MAC OS X 10.2 Date: Thu, 16 Jan 2003 15:00:18 -0600 Organization: Medical College of Wisconsin, Milwaukee Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3E271D62.1030100@mcw.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1042752184 4719 80.91.224.249 (16 Jan 2003 21:23:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 16 Jan 2003 21:23:04 +0000 (UTC) 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 18ZHTa-0001Dy-00 for ; Thu, 16 Jan 2003 22:23:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ZHMQ-0002qo-08 for gnu-help-gnu-emacs@m.gmane.org; Thu, 16 Jan 2003 16:15:38 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!uwm.edu!news.doit.wisc.edu!wiscnews.wiscnet.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Original-NNTP-Posting-Host: markov.biostat.mcw.edu Original-X-Trace: wiscnews.wiscnet.net 1042750819 28316 141.106.120.18 (16 Jan 2003 21:00:19 GMT) Original-X-Complaints-To: usenet@wiscnews.wiscnet.net Original-NNTP-Posting-Date: 16 Jan 2003 21:00:19 GMT User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0 X-Accept-Language: en-us, en Original-Xref: shelby.stanford.edu gnu.emacs.help:109051 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:5579 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5579 Mark: Check out the documentation for define-key, i.e. C-h f define-key For example, this is what 'up' should be (I think): (define-key global-map "\^[OA" 'previous-line) ;activate up arrow key mark belloni wrote: > help-gnu-emacs: I am a powerbook G4 OS X 10.2 user and am brand new > to GNU Emacs. > > To customize GNU Emacs, I have tried to create a .emacs file that is > bug free without > success that works on the terminal.app . > > What I would like to do at this time is two fold. > > 1.) map the arrow keys to their respective GNU Emacs commands. > 1a.) preserve the C-x 1 window setting; when butchering the attempt at > 1.) the window gets split into 2. I tried to get a macro > inserted into > .emacs below but it does not work > > 2.) map the delete-backward-char command to the "delete" key. I could > not so > I chose to map to the "pipe" key instead. > > Anyway, below is the butchered .emacs file so far, which needs attention. > > Please advise. > > Mark > > (setq term-file-prefix nil) > (send-string-to-terminal "\e=") > > (fset 'kbdmac ; macro to correct the split window > "\C-x1\C-m") > > > (define-key global-map "|" 'delete-backward-char) ;delete key > > (define-key global-map "ESC-O A" 'previous-line) ;activate up > arrow key > (define-key global-map "ESC-O B" 'next-line) ;activate down > arrow key > (define-key global-map "ESC-O C" 'forward-char) ;activate right > arrow key > (define-key global-map "ESC-O D" 'backward-char) ;activate left > arrow key > > > -- Rodney Sparapani Medical College of Wisconsin Sr. Biostatistician Patient Care & Outcomes Research rsparapa@mcw.edu http://www.mcw.edu/pcor Was 'Name That Tune' rigged? WWLD -- What Would Lombardi Do