all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rodney Sparapani <rsparapa@mcw.edu>
Subject: Re: emacs on MAC OS X 10.2
Date: Thu, 16 Jan 2003 15:00:18 -0600	[thread overview]
Message-ID: <3E271D62.1030100@mcw.edu> (raw)
In-Reply-To: mailman.413.1042747709.21513.help-gnu-emacs@gnu.org

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

       reply	other threads:[~2003-01-16 21:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.413.1042747709.21513.help-gnu-emacs@gnu.org>
2003-01-16 21:00 ` Rodney Sparapani [this message]
2003-01-17 15:57 ` emacs on MAC OS X 10.2 Benjamin Riefenstahl
2003-01-17 17:06 ` Kai Großjohann
2003-01-17 18:48   ` Per Rønne
2003-01-17  1:02 mark belloni
  -- strict thread matches above, loose matches on Subject: below --
2003-01-16 20:06 mark belloni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E271D62.1030100@mcw.edu \
    --to=rsparapa@mcw.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.