Skip to content

Instantly share code, notes, and snippets.

@eschulte
Created May 29, 2012 22:12
Show Gist options
  • Save eschulte/2831109 to your computer and use it in GitHub Desktop.
Save eschulte/2831109 to your computer and use it in GitHub Desktop.
//// Key Bindings
define_key(content_buffer_normal_keymap, "h", "cmd_scrollLeft");
define_key(content_buffer_normal_keymap, "j", "cmd_scrollLineDown");
define_key(content_buffer_normal_keymap, "k", "cmd_scrollLineUp");
define_key(content_buffer_normal_keymap, "l", "cmd_scrollRight");
define_key(content_buffer_normal_keymap, "C-j", "cmd_scrollLineDown");
define_key(content_buffer_normal_keymap, "C-k", "cmd_scrollLineUp");
call_after_load("google-search-results",
function () {
undefine_key(google_search_results_keymap, "j");
undefine_key(google_search_results_keymap, "k");
});
define_key(content_buffer_normal_keymap, "/", "isearch-forward");
define_key(content_buffer_normal_keymap, "/", "isearch-forward");
define_key(content_buffer_normal_keymap, "C-h n", "buffer-next");
define_key(content_buffer_normal_keymap, "C-h p", "buffer-previous");
define_key(content_buffer_normal_keymap, "C-x C-b", "switch-to-buffer");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment