Hi,
On OS X, M-TAB is taken by the system for task switching. What do people generally map in its place (and how)? ESC TAB works, but it is a bit awkward. There is also M-/ but I don't want to change that. I also want to keep the command key as Meta.
I'm using Emacs from CVS (updated occasionally).
David Steuber david@david-steuber.com writes:
On OS X, M-TAB is taken by the system for task switching. What do people generally map in its place (and how)?
M-TAB = C-M-i
On Wed, 27 Oct 2004 21:50:07 -0400, David Steuber david@david-steuber.com wrote:
On OS X, M-TAB is taken by the system for task switching. What do people generally map in its place (and how)? ESC TAB works, but it is a bit awkward. There is also M-/ but I don't want to change that. I also want to keep the command key as Meta.
I use C-TAB on Windows.
Am Thu, 28 Oct 2004 08:11:38 +0200 schrieb Edi Weitz edi@agharta.de:
On Wed, 27 Oct 2004 21:50:07 -0400, David Steuber
On OS X, M-TAB is taken by the system for task switching. What do people generally map in its place (and how)? ESC TAB works, but it is a bit awkward. There is also M-/ but I don't want to change that. I also want to keep the command key as Meta.
I use C-TAB on Windows.
(define-key slime-mode-map [tab] 'slime-indent-and-complete-symbol)
Though that may cause some unwanted effects in some situations. But decide for yourself.
On Oct 28, 2004, at 3:09 PM, Thomas Schilling wrote:
Am Thu, 28 Oct 2004 08:11:38 +0200 schrieb Edi Weitz edi@agharta.de:
On Wed, 27 Oct 2004 21:50:07 -0400, David Steuber
On OS X, M-TAB is taken by the system for task switching. What do people generally map in its place (and how)? ESC TAB works, but it is a bit awkward. There is also M-/ but I don't want to change that. I also want to keep the command key as Meta.
I use C-TAB on Windows.
(define-key slime-mode-map [tab] 'slime-indent-and-complete-symbol)
Though that may cause some unwanted effects in some situations. But decide for yourself.
A one key stroke solution sounds nice. You have to hit the tab twice to get the list of completions, right? At least that's how it works in the repl and in bash.
David Steuber wrote:
(define-key slime-mode-map [tab] 'slime-indent-and-complete-symbol)
Though that may cause some unwanted effects in some situations. But decide for yourself.
A one key stroke solution sounds nice. You have to hit the tab twice to get the list of completions, right? At least that's how it works in the repl and in bash.
Well, actually I only have to press it once, same in REPL. Even in my cygwin bash. But as you see I'm using windoze+XEmacs so possibly this has something to do with (your) OS X (configuration). Though pressing the same key twice isn't a problem, either (I think).
The only problem is that since TAB is used for indenting and completing code there may be ambiguities. Some are resolved nicely by choosing indent when in doubt. The other one, though is not so nice-it completes `no' symbols meaning that it lists _all_ symbols, which may be quite slow and annoying. But this is the only problem I noticed and it happens not that often for me, so I can live with it.
-ts
"David" == David Steuber david@david-steuber.com writes:
David> Hi, On OS X, M-TAB is taken by the system for task switching. David> What do people generally map in its place (and how)? ESC TAB David> works, but it is a bit awkward. There is also M-/ but I don't David> want to change that. I also want to keep the command key as David> Meta.
David> I'm using Emacs from CVS (updated occasionally).
I use S-TAB under Linux/X11, Super being mapped to my "Windows" key (I also map "Menu" to Hyper and use that to manage escreens in XEmacs, open files, etc).
Also, S-x and S-e instead of C-M-x and C-x C-e, respectively, give a lot of relief to my hands.
--J.
Jan Rychter jan@rychter.com writes:
"David" == David Steuber david@david-steuber.com writes:
David> Hi, On OS X, M-TAB is taken by the system for task switching. David> What do people generally map in its place (and how)? ESC TAB David> works, but it is a bit awkward. There is also M-/ but I don't David> want to change that. I also want to keep the command key as David> Meta.
David> I'm using Emacs from CVS (updated occasionally).
I use S-TAB under Linux/X11, Super being mapped to my "Windows" key (I also map "Menu" to Hyper and use that to manage escreens in XEmacs, open files, etc).
Also, S-x and S-e instead of C-M-x and C-x C-e, respectively, give a lot of relief to my hands.
As of 2004-10-28, CVS HEAD has my patch for mapping the Mac option key to alt, hyper, or super when using Carbon, see 'mac-option-modifier'.
Regards, Will
On Nov 6, 2004, at 11:18 PM, Will wrote:
As of 2004-10-28, CVS HEAD has my patch for mapping the Mac option key to alt, hyper, or super when using Carbon, see 'mac-option-modifier'.
Cool. I built the latest version from CVS a few hours ago and show-paren-mode seems to not work anymore. I'm building a version from 2004-10-29 in hopes of it working then. I can't do Lisp without my parens showing!
I was liking the one Tab press does all trick posted by Thomas Schilling. I haven't stressed it yet though. Although pressing the Tab key in the middle of a symbol does some strangeness.
On another tangent, has someone got a better key binding for C-c C-] (slime-close-all-sexp)? I was thinking it would be nice to have M-Ret do slime-close-all-sexp and then insert a newline. I'm not sure what ELisp foo needs to go into my .emacs to do that though. I'm guessing it is another define-key thing with perhaps a lambda.