[OS X Emacs] FW: rebinding function keys

Peter North PNorth at sydneyoperahouse.com
Tue Jul 12 14:18:41 EDT 2011


Hi, aquamacs people. 

Thanks to the those of you who rote back with advice. 

The frame code works beautifully. Thanks for that.

However the function key bindings (global-set-key [f1] 'savefile) doesn't. 

As I wrote in my last email, I've tried variations like "<f1>", and (define-key rather than (global-set-key but nothing seems to override the bindings listed under C-h b. 

Nor can I find the aquamacs /.emacs file [typing C-x C-f ~/.emacs returns a message "no file found"] or where the C-h b bindings code is stored. 

This is standard aquamacs 2.2 installed by dragging the downloaded icon into applications.

Again thanks to everybody for reading. Any ideas would be appreciated.

Peter North




________________________________________
From: macosx-emacs-bounces at email.esm.psu.edu [macosx-emacs-bounces at email.esm.psu.edu] On Behalf Of Peter Dyballa [Peter_Dyballa at Web.DE]
Sent: Sunday, 10 July 2011 10:30 PM
To: Emacs on Mac OS X Mailing List
Subject: Re: [OS X Emacs] FW: rebinding function keys

Am 10.07.2011 um 12:54 schrieb Peter North:

> (setq initial-frame-alist '((background-colour . "black")
> (setq initial-frame-list '((foreground-colour . "green")
> (setq default ((cursor-colour . "blue")
> (setq default-frame-alist '((background-colour . "black" (left . 0)
> (width . 141) (height . 44)))

You can get some structure into this with, for example:

        (setq initial-frame-alist
          (append (list
            '(background-color  . "azure")
            '(border-color      . "#4e3832")
            '(cursor-color      . "purple")
            '(foreground-color  . "grey10")
        ;    '(active-alpha     . 0.875)
        ;    '(inactive-alpha   . 0.75)
        ;    '(font . "fontset-10pt_free_mono")
        ;    '(font . "fontset-09pt_lucida_sans_typewriter")
        ;    '(font . "fontset-09pt_vera_sans_mono")
            '(top . 136) '(left . 666) '(width . 100) '(height . 57)
          ) initial-frame-alist))

When the background colour is set in default-frame-alist then you
don't need to set again in initial-frame-alist...


> (global-set-key <"f1->" 'find-file


This is a rather disastrous choice: a f1 key map already exists,
providing help, defined in . Couldn't you use your private setting
with right hand? Or bound to f2 (which has also some keys with
2C[olumns] functions bound to it)? Some f1 bindings are still free, so
you could:

        (global-set-key [f1 f2] 'info-apropos)
        (global-set-key [s-f1]  'replace-regexp)

C-h b might help to see all bound keys.

--
Mit friedvollen Grüßen

   Pete

When in doubt, use brute force.
                                – Ken Thompson


Please consider the environment before printing this email.

Please consider the environment before printing this email.
=====This message is intended for the addressee(s) named and may contain confidential information.
If you are not the intended recipient, please delete it and notify the sender.
Views expressed in this email are those of the individual sender and are not necessarily the views of the Sydney Opera House Trust=====



More information about the MacOSX-Emacs mailing list