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
;; diff --git a/melpa-autoloads.el b/melpa-autoloads.el | |
(defadvice package--add-to-archive-contents (around package-filter-add-to-archive-contents (package archive) activate compile) "\ | |
Add filtering of available packages using `package-filter-function', | |
-if non-nil." (when (and package-filter-function (funcall package-filter-function (car package) (package-desc-vers (cdr package)) archive)) ad-do-it)) | |
+if non-nil." (when (and package-filter-function (funcall package-filter-function (car package) (package--ac-desc-version (cdr package)) archive)) ad-do-it)) | |
;; diff --git a/melpa.el b/melpa.el | |
@@ -84,7 +84,7 @@ if non-nil." |
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
(require 'twittering-mode) | |
(defun tweet() | |
(interactive) | |
(when | |
(twittering-ensure-preparation-for-api-invocation) | |
(twittering-update-status-from-pop-up-buffer))) | |
(global-set-key (kbd "C-c C-s") 'tweet) |
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
(list | |
:el-get (el-get-read-all-recipe-names) | |
:elpa | |
(progn | |
(package-refresh-contents) | |
(loop for pkg in package-archive-contents | |
collect (symbol-name (car pkg)))) | |
:emacsmirror | |
(with-temp-buffer | |
(call-process |
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
(require 'cl) | |
(defvar anything-c-source-bm-global | |
'((name . "Global Bookmarks") | |
(init . anything-c-bm-global-init) | |
(candidates-in-buffer) | |
(type . global-bm)) | |
"Bookmarks exist in `bm-repository'.") | |
(define-anything-type-attribute 'global-bm |
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
plugins.options["hok.actions"] = []; | |
plugins.options["hok.actions"].push( | |
['g', | |
"Inspect element in Firebug", | |
function (elem) { Firebug.Inspector.inspectFromContextMenu(elem); }, | |
false, false, "*"] | |
); | |
plugins.options["hok.actions"].push( | |
['m', | |
"Open context menu", |
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
/* | |
* for pdf.js | |
* @see https://github.com/mozilla/pdf.js | |
* | |
* == Mappings == | |
* {count}<C-j> : go next page | |
* {count}<C-k> : go previous page | |
* go : go to {num} page | |
* {count}zz : zoom {count} % or 100%(if ommit) | |
* zw : zoom page width |
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
#-*-ruby-*- | |
device /AT Translate|HHKB/ | |
key C-M-S-q { quit } | |
# swap number keys | |
key[_1] = exclam, _1 | |
key[_2] = at, _2 | |
key[_3] = numbersign, _3 |
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://www.lifehacker.jp/2011/06/110622_listalltabsthumbs.html | |
// をしなくても、以下のようなキーバインドを割り当てればタブ一覧が表示される | |
key.setViewKey('A', function (ev, arg) { | |
allTabs.open(); | |
}, 'タブを一覧表示', true); | |
// ついでに、上記で表示されるタブ一覧と、Ctrl+Shift+e で表示されるタブグループ一覧(?)で | |
// タブ検索を XULMigemoる | |
// これは %PRESERVE% エリアへ | |
(function(){ |
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'); |
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, '選択タブをトグルする'); | |
} |
NewerOlder