This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (KeySnail.windowType === "navigator:browser") | |
{ | |
const whiteList = [ | |
// ["URL (RegExp)", ["k", "e", "y"]] | |
["http://twitter\.com/", ["f"]], | |
["http://wikipedia\.com/", ["j", "o"]] | |
]; | |
window.addEventListener( | |
"DOMContentLoaded", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-to-list 'load-path "~/src/emacs-starter-kit/src/mmm-mode") | |
(require 'mmm-mode) | |
(setq mmm-global-mode 'maybe) | |
(mmm-add-classes | |
'((embedded-org-css | |
:submode css | |
:face mmm-declaration-submode-face | |
:delimiter-mode nil | |
:front "#\\+begin_src css" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ========================== KeySnail Init File =========================== // | |
// この領域は, GUI により設定ファイルを生成した際にも引き継がれます | |
// 特殊キー, キーバインド定義, フック, ブラックリスト以外のコードは, この中に書くようにして下さい | |
// ========================================================================= // | |
//{{%PRESERVE% | |
userscript.addLoadPath("~/programming/js"); | |
// Prompt settings {{ ======================================================= // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://pc12.2ch.net/test/read.cgi/software/1271678210/719 | |
// ツール -> KeySnail -> 設定ファイルを編集 から設定ファイルを開き, その末尾へ次のコードを貼り付け. | |
key.setViewKey('<f8>', function (ev, arg) { | |
var toolBar = document.getElementById("PersonalToolbar"); | |
toolBar.collapsed = !toolBar.collapsed; | |
}, 'ブックマークツールバーをトグル'); | |
key.setViewKey('C-F', function (ev, arg) { | |
command.iSearchForwardKs(ev); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qualified Data.Map as M | |
import XMonad | |
import qualified XMonad.StackSet as W | |
import XMonad.Actions.WindowGo | |
import XMonad.Actions.CycleWS | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Hooks.EwmhDesktops | |
import XMonad.Layout |

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(progn | |
;; http://d.hatena.ne.jp/kiwanami/20110224/1298526678 | |
(defvar ac-yas-expand-autostart-backup nil "保存用") | |
(defun ac-yas-expand-start () | |
"yasnippet展開開始時にはACを止める" | |
(setq ac-yas-expand-autostart-backup ac-auto-start) | |
(setq ac-auto-start nil)) | |
(defun ac-yas-expand-end () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Info | |
let PLUGIN_INFO = | |
<KeySnailPlugin> | |
<name>History</name> | |
<description>History from KeySnail</description> | |
<description lang="ja">履歴を検索</description> | |
<iconURL>https://sites.google.com/site/958site/Home/files/history.ks.png</iconURL> | |
<updateURL>https://gist.github.com/958/895953/raw/history.ks.js</updateURL> | |
<author>958</author> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (typeof gBrowser !== 'undefined' && gBrowser.tabContainer) { | |
let prev = gBrowser.tabContainer.selectedIndex; | |
let cur = prev; | |
gBrowser.tabContainer.addEventListener("TabSelect", function(){ | |
prev = currentSelectedTabIndex; | |
cur = gBrowser.tabContainer.selectedIndex; | |
}, false); | |
ext.add("toggle-selected-tab", function () gBrowser.tabContainer.selectedIndex = prev, '選択タブをトグルする'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Disable github keyboard shortcuts | |
// @namespace http://sites.google.com/site/958site/ | |
// @description github のキーボードショートカットを殺す | |
// @include https://github.com/* | |
// @include https://gist.github.com/* | |
// ==/UserScript== | |
unsafeWindow.$(document).unbind('keydown'); |
OlderNewer