help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: # in carbon emacs on OSX?


From: Peter Dyballa
Subject: Re: # in carbon emacs on OSX?
Date: Tue, 1 Feb 2011 20:04:43 +0100


Am 01.02.2011 um 19:07 schrieb Matthew Vernon:

emacs-version is 23.2.1 window-system is ns


This "Cocoa" Emacs should know mac-function-modifier, mac-control- modifier, mac-command-modifier, and mac-option-modifier (plus mac- right-command-modifier, mac-right-control-modifier, mac-right-option- modifier). Their values can be (quoted) ctrl (or control?), alt, meta, super, hyper, or nil (unquoted). They're aliases of:

        ns-alternate-modifier
           This variable describes the behavior of the alternate or option key.
        ns-command-modifier
           This variable describes the behavior of the command key.
        ns-control-modifier
           This variable describes the behavior of the control key.
        ns-function-modifier
This variable describes the behavior of the function key (on laptops).
        ns-option-modifier
        ns-right-alternate-modifier
This variable describes the behavior of the right alternate or option key.
        ns-right-command-modifier
           This variable describes the behavior of the right command key.
        ns-right-control-modifier
           This variable describes the behavior of the right control key.
        ns-right-option-modifier

Making any of them nil makes them available to Mac OS X, i.e., allows Mac OS X to choose the corresponding layer of the key definitions. Launch the "virtual keyboard" to see whether the keys still work in Mac OS X (when the text cursor is in Emacs).

To have an init file that works with Carbon (22.x) and NS or "Cocoa" Emacsen (20-24.x) and the AppKit Emacs (something like "Carbon Emacs" 23.x) you can use the mac-*-modifier variables.

--
Greetings

  Pete

I love deadlines. I love the whooshing noise they make as they go by.
                                – Douglas Adams




reply via email to

[Prev in Thread] Current Thread [Next in Thread]