Преглед изворни кода

Merge branch 'dev'

pull/1/head
10sr пре 12 година
родитељ
комит
507da70606
2 измењених фајлова са 11 додато и 23 уклоњено
  1. +9
    -22
      _keysnail.js
  2. +2
    -1
      emacs.el

+ 9
- 22
_keysnail.js Прегледај датотеку

@@ -498,7 +498,7 @@ ext.add("list-tab-history", function () {
// ========================= Special key settings ========================== //

key.quitKey = "<delete>";
key.helpKey = "C-h";
key.helpKey = "<f1>";
key.escapeKey = "C-q";
key.macroStartKey = "";
key.macroEndKey = "";
@@ -510,11 +510,11 @@ key.suspendKey = "Not defined";

// ================================= Hooks ================================= //

hook.addToHook('KeySnailInitialized', function () {
hook.setHook('KeySnailInitialized', function () {
ext.exec("shiitake-enable-style");
});

hook.addToHook('KeyBoardQuit', function (aEvent) {
hook.setHook('KeyBoardQuit', function (aEvent) {
ext.exec("hide-sidebar");
let(elem = document.commandDispatcher.focusedElement) elem && elem.blur();
gBrowser.focus();
@@ -540,16 +540,6 @@ hook.setHook('Unload', function () {
});
});

// hook.addToHook('LocationChange', function (aNsURI) {
// if(window.content.document.body){
// display.prettyPrint(window.content.document.title);
// }else{
// window.addEventListener("load", function(){
// disp = display;
// disp.prettyPrint(window.content.document.title);
// }, false);
// }
// });

// ============================= Key bindings ============================== //

@@ -722,7 +712,8 @@ key.setViewKey([['<prior>'], ['<next>']], function (ev, arg) {
}, 'ignore');

key.setViewKey(':', function (ev, arg) {
return !document.getElementById("keysnail-prompt").hidden && document.getElementById("keysnail-prompt-textbox").focus();
return !document.getElementById("keysnail-prompt").hidden &&
document.getElementById("keysnail-prompt-textbox").focus();
}, 'KeySnail のプロンプトへフォーカス', true);

key.setViewKey('H', function (ev, arg) {
@@ -745,14 +736,10 @@ key.setViewKey('C-<backspace>', function (ev, arg) {
ext.exec("list-tab-history", arg, ev);
}, 'List tab history', true);

key.setEditKey('C-<tab>', function (ev) {
command.walkInputElement(command.elementsRetrieverTextarea, true, true);
}, '次のテキストエリアへフォーカス');

key.setViewKey('I', function (ev, arg) {
ext.exec('instapaper-post-page-with-comment', arg, ev);
ext.exec("instapaper-post-page-with-comment", arg, ev);
}, 'post page and comment', true);

key.setViewKey('C-<backspace>', function (ev, arg) {
ext.exec('list-tab-history', arg, ev);
}, 'List tab history', true);
key.setEditKey('C-<tab>', function (ev) {
command.walkInputElement(command.elementsRetrieverTextarea, true, true);
}, '次のテキストエリアへフォーカス');

+ 2
- 1
emacs.el Прегледај датотеку

@@ -605,7 +605,8 @@ return nil if LIB unfound and downloading failed, otherwise the path of LIB."
)
(setq x-select-enable-clipboard t ; these settings seems to be useless when using emacs in terminal
x-select-enable-primary nil)
(global-set-key "\C-y" 'x-clipboard-yank))
;; (global-set-key "\C-y" 'x-clipboard-yank)
)

;; urlに細かい説明あり。でも設定は上記だけでよさそう
;; http://garin.jp/doc/Linux/xwindow_clipboard


Loading…
Откажи
Сачувај