tags:

views:

470

answers:

2

Background information:

I'm on a Mac, and I've just upgraded to Emacs 23.1 via http://emacsformacosx.com/. There are a few issues, notably the lack of full screen ability.

I've attempted to get around this last issue by installing Megazoomer, which adds a global input manager bound to Cmd-return. This causes the currently forward application to maximise. However, Emacs reports that <s-return> is undefined. I've never seen an s-[key] mentioned before, and Google isn't forthcoming with an answer.

So, two parts:

  1. What does s-[key] mean? This is purely for my satisfaction; and
  2. Can I tell Emacs to ignore this key combination and let the key combination carry through to the system (so that hopefully I can have full screen Emacs back again)?

EDIT: so 1) is resolved, and as to 2) I've got: (global-set-key (kbd "<s-return>") 'ignore), which at least stops the error. However, Emacs still swallows the key combination, which isn't ideal.

+7  A: 
Martin Geisler
I would really love to have one of these nowadays. +1 for the pic.
Jonathan
Me too, imagine having a thumbs-up and thumbs-down button on your keyboard! Not to mention the four roman numerals... :-)
Martin Geisler
Awesome, thanks for that. You wouldn't happen to know how I can tell Emacs to drop that combination though...?
Brad Wright
I'm sorry, but I don't know the answer to your second part. I can only offer this link which has several recipes: http://www.emacswiki.org/emacs/FullScreen
Martin Geisler
... except that it says: "fullscreen functionality has not made it into Emacs-23 as of early 2009" when talking about full screen on Mac OS X :-(
Martin Geisler
I don't think Emacs is doing anything with that key combination. If it gets to Emacs, it means your window manager doesn't think that key does anything.
jrockway
A: 
(setq ns-command-modifier nil)

That is supposed to do what you want. However, it's having somewhat unpredictable behaviour on machine when I test it, so be warned.

Singletoned