unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs on MAC OS X 10.2
@ 2003-01-16 20:06 mark belloni
  0 siblings, 0 replies; 5+ messages in thread
From: mark belloni @ 2003-01-16 20:06 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs on MAC OS X 10.2
       [not found] <mailman.413.1042747709.21513.help-gnu-emacs@gnu.org>
@ 2003-01-16 21:00 ` Rodney Sparapani
  2003-01-17 15:57 ` Benjamin Riefenstahl
  2003-01-17 17:06 ` Kai Großjohann
  2 siblings, 0 replies; 5+ messages in thread
From: Rodney Sparapani @ 2003-01-16 21:00 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs on MAC OS X 10.2
       [not found] <mailman.413.1042747709.21513.help-gnu-emacs@gnu.org>
  2003-01-16 21:00 ` emacs on MAC OS X 10.2 Rodney Sparapani
@ 2003-01-17 15:57 ` Benjamin Riefenstahl
  2003-01-17 17:06 ` Kai Großjohann
  2 siblings, 0 replies; 5+ messages in thread
From: Benjamin Riefenstahl @ 2003-01-17 15:57 UTC (permalink / raw)


Hi Mark,


I assum you are using the pre-installed Emacs, which is rather old.
Instead you may want to get Emacs from CVS and build it yourself.
That gives you a real Aqua windowing mode and it also should fix your
arrow key problem in the terminal mode.


so long, benny

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs on MAC OS X 10.2
       [not found] <mailman.413.1042747709.21513.help-gnu-emacs@gnu.org>
  2003-01-16 21:00 ` emacs on MAC OS X 10.2 Rodney Sparapani
  2003-01-17 15:57 ` Benjamin Riefenstahl
@ 2003-01-17 17:06 ` Kai Großjohann
  2003-01-17 18:48   ` Per Rønne
  2 siblings, 1 reply; 5+ messages in thread
From: Kai Großjohann @ 2003-01-17 17:06 UTC (permalink / raw)


mark belloni <markbelloni@earthlink.net> writes:

> (define-key global-map "ESC-O A" 'previous-line)    ;activate  up
> arrow key

That's the wrong way to do it.  Emacs looks in lisp/term/foo.el if
$TERM is set to foo for the keybindings to use.  (the lisp/term/README
file has more data.)  If that file contains the wrong bindings, please
submit a bug report to the Emacs developers.  But maybe $TERM is just
set wrongly?

If you want to have it quick, try 

(define-key function-key-map (kbd "ESC O A") (kbd "<up>"))

and similar statements.  Note that the string after kbd uses the same
syntax that's produced by C-h k, C-h l and friends.

-- 
Ambibibentists unite!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs on MAC OS X 10.2
  2003-01-17 17:06 ` Kai Großjohann
@ 2003-01-17 18:48   ` Per Rønne
  0 siblings, 0 replies; 5+ messages in thread
From: Per Rønne @ 2003-01-17 18:48 UTC (permalink / raw)


Kai Großjohann <kai.grossjohann@uni-duisburg.de> wrote:

> That's the wrong way to do it.

Personally, I'm using QuicKeys for that ...
-- 
Per Erik Rønne, MSc
Frederikssundsvej 308B, 3. tv.
DK-2700 Brønshøj, Denmark
Telephone + fax +45 38 89 00 16, mobile +45 28 23 09 92

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-01-17 18:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.413.1042747709.21513.help-gnu-emacs@gnu.org>
2003-01-16 21:00 ` emacs on MAC OS X 10.2 Rodney Sparapani
2003-01-17 15:57 ` Benjamin Riefenstahl
2003-01-17 17:06 ` Kai Großjohann
2003-01-17 18:48   ` Per Rønne
2003-01-16 20:06 mark belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).