key-bindings

Emacs on Mac OS X Leopard key bindings

I'm a Mac user and I've decided to learn Emacs. I've read that to reduce hand strain and improve accuracy the CTRL and CAPS LOCK keys should be swapped. How do I do this in Leopard? Also, in Terminal I have to use the ESC key to invoke meta. Is there any way to get the alt/option key to invoke meta instead? update: While the control ke...

OS X keybindings in AIR app

When used in an AIR app, some standard keystrokes in OS X are either ignored or produce "mystery" characters rather than behaving as expected. Examples: option + left arrow should move the caret one word backward, it prints a mystery character ctrl + h should delete one character backward, it prints h How do I support OS X default ke...

How to create a binding for NSApp.dockTile's

In IB it is easy to bind a label or text field to some controller's keyPath. The NSDockTile (available via [[NSApp dockTile] setBadgeLabel:@"123"]) doesn't appear in IB, and I cannot figure out how to programmatically bind its "badgeLabel" property like you might bind a label/textfield/table column. Any ideas? ...

Universal keybindings in Eclipse

I want to be able to use CTRL-SHIFT-T to open a Java Type (source code file) from any perspective in Eclipse. Unfortunately, the keybinding only works in the Java perspective. I tried defining the keybindings using context "In Windows" and "In Dialogs and Windows." That did not do the trick. Any ideas how to do this? (For documenta...

Zend Studio for Eclipse and VIplugin

Anyone using VIplugin with Zend Studio for Eclipse? I would love to be able to use vi keybinding and in theory it sounds like it would work. But wanted to check before buying the plugin. ...

How do I make a key binding/shortcut for an ASP.NET button to postback via that button?

I'm developing what's intended to be a very efficient UI in ASP.NET. I want my users to be able to hit ALT-A to postback the form via a particular button. In other words, when they hit "ALT A" the form will post back and the event handler/function associated with a particular ASP.NET button control will run. How can I do this? I have...

How to capture CTRL+TAB, CTRL+SHIFT+TAB in WPF?

Does anyone have some sample code that will trap the CTRL+TAB and CTRL+SHIFT+TAB for a WPF application. We have created KeyDown events and also tried adding command bindings with input gestures but we are never able to trap these 2 shortcuts. ...

In which file was the keybinding defined?

Considering a keystroke in Emacs, e.g. C-x C-s. I can figure out which function it invokes by typing C-h c keystroke, but how can I find where this keybinding was defined? (Maybe the right answer is that it cannot be decided, because the keymaps don't store this kind of information.) ...

Can emacs differentiate between ctrl-r and ctrl-shift-r?

I'd like to bind ctrl-r to 'isearch-backward and bind ctrl-shift-r to 'tags-apropos but I can't distinguish between the two key presses. Can emacs differentiate between ctrl-r and ctrl-shift-r? What should go into my .emacs file to allow this keybinding? ...

Where are Eclipse key configurations saved on Mac OS X

There is no .eclipse dir under my home dir. I can't find the configuration file saving the key binding schemes. Where are they saved on Mac OS X? ...

Emacs global-set-key to C-TAB

I'm trying to set a key-binding to Ctrl+TAB in Emacs. I used the following call: (global-set-key (read-kbd-macro "C-TAB") 'my-func) However, whenever I use it, I get a <C-tab> is undefined error message. Trying to set the binding to "C-tab" results in an error message. How can I set my binding to C-TAB? ...

Is it possible to toggle a menu from keyboard input?

I'm building a dashboard'ish application for a special purpose hardware that has physical buttons that are bound to F1-F10, Up, Down, Backspace, Enter. The application consists of a few views (implemented using the MVVM-pattern) and most of the user interaction are done with menus that are aligned near the physical buttons. I'm trying to...

C-Tab cannot be recognized in terminal?

I want to bind company-mode-map to C-tab, but it seems doesn't work. And I typed C-h k C-tab, it just said that I typed TAB but not C-Tab. It works in Xwindows, is there any way to fix the problem in terminal mode? ...

Keybinding a RelayCommand

I'm using the RelayCommand in my app. It's great for putting the code in the viewmodel, but how do I bind keystrokes to my command? RoutedUICommand has its InputGestures property, which makes the command automatically be invoked when I press the keystroke. (As an added bonus, it even makes the keystroke display in the MenuItem.) Unfortu...

Reloading PBKeyBindings.dict while Xcode is running

I am creating my Xcode key bindings by editing PBKeyBindings.dict, since this seems to be the way to create commands that are sequences of method calls. This works fine, but one must reload Xcode to have the changes take effect. Is there some way to prod Xcode into reloading this file as it is running? ...

how to programically set keybinding schemes in kde

I'm making a automatic configuration script for kde and I want to replace the current keybindings with a key binding file of my own. I found that there is a list of keybinding files in /usr/share/apps/kcmkeys directory all stored in .kksrc files, and I can define custom .kksrc files in ~/.kde/share/apps/kcmkeys directory. However, I do...

How to use the alt/option key as the "meta" key in NetBeans on OS X with emacs keybindings?

NetBeans supports emacs-style keybindings, but for some reason it uses cmd as the "meta" key instead of alt, which seems to be the standard on OS X. (Terminal.app has a checkbox for "use option as meta key", for example.) How can I switch to using alt/option as the "meta" key for emacs-style keybindings? ...

Can't wrap my head around implementing KeyBindings

Hi, I want to handle hotkeys in my application. Writing a keybinding requires a command, which is fine, but it's not clear to me what is the minimum amount of work needed to implement that command. All the examples I seem to find are over-engineered, unclear or assume I'm using the MVVM pattern which I am not. So what are the basics t...

Emacs merging buffers into one without using C-x 1 keybind

Hi! Could you suggest the key bind in emacs to do the following: Steps: for example 1) I divided all text editor area into 2 pieces with command C-x 2 2) Then I divided first one on another 2 pieces with C-x 3 3) How can I make the first piece (a buffer in this case) See attached image for better description of what I want get ...

Eclipse: How to create and load custom key bindings schemes?

I started using Eclipse recently along with the awesome PyDev plugin for Python development. Being used to the Visual Studio key bindings, I found that Eclipse has built-in support for a Visual Studio (and Emacs too) key bindings scheme. However, I would like to create my own custom key bindings scheme and be able to load the scheme int...