Browse Source

Merge branch 'master' of github.com:10sr/dotfiles

pull/1/head
10sr 12 years ago
parent
commit
63cd263a77
4 changed files with 17 additions and 39 deletions
  1. +1
    -38
      _keysnail.js
  2. +1
    -1
      bashrc
  3. +8
    -0
      darwin/updatefiles.sh
  4. +7
    -0
      emacs.el

+ 1
- 38
_keysnail.js View File

@@ -222,16 +222,8 @@ ext.add("strong-fullscreen", function(){

}, "go fullscreen with hiding toolbar and tabbar");

// ext.add("open-url-from-clipboard", function(){
// var list = command.getClipboardText().split("\n");
// for(var i = 0; i < list.length; i++){
// if(list[i] != ""){
// gBrowser.loadOneTab(list[i], null, null, null, false);
// }
// }
// }, "open tabs of newline separated url list from clipboard");

ext.add("list-page-url", function(){
// window.content.document.links
var urls = [];
var aa = window.content.document.getElementsByTagName("a");
var text = "";
@@ -429,35 +421,6 @@ ext.add("restart-firefox-add-menu", function(){
menu.appendChild(menuelm);
}, "add restart firefox menu");

//////////////////////////////////////
// restart firefox
// http://keysnail.g.hatena.ne.jp/Shinnya/20100723/1279878815
// ext.add("restart-firefox",function (ev) {
// const nsIAppStartup = Components.interfaces.nsIAppStartup;
// // Notify all windows that an application quit has been requested.
// var os = Components.classes["@mozilla.org/observer-service;1"]
// .getService(Components.interfaces.nsIObserverService);
// var cancelQuit = Components.classes["@mozilla.org/supports-PRBool;1"]
// .createInstance(Components.interfaces.nsISupportsPRBool);
// os.notifyObservers(cancelQuit, "quit-application-requested", null);
// // Something aborted the quit process.
// if (cancelQuit.data)
// return;
// // Notify all windows that an application quit has been granted.
// os.notifyObservers(null, "quit-application-granted", null);
// // Enumerate all windows and call shutdown handlers
// var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
// .getService(Components.interfaces.nsIWindowMediator);
// var windows = wm.getEnumerator(null);
// while (windows.hasMoreElements()) {
// var win = windows.getNext();
// if (("tryToClose" in win) && !win.tryToClose())
// return;
// }
// Components.classes["@mozilla.org/toolkit/app-startup;1"].getService(nsIAppStartup)
// .quit(nsIAppStartup.eRestart | nsIAppStartup.eAttemptQuit);
// }, "restart firefox");

/////////////////////////////////////////
// copy feed url
ext.add("copy-url", function () {


+ 1
- 1
bashrc View File

@@ -190,7 +190,7 @@ null type apt-get && \
alias aupgrade="sudo apt-get autoremove --yes && sudo apt-get update --yes && sudo apt-get upgrade --yes"
null type port && \
alias port="port -v"
alias pupgrade="sudo port -v selfupdate && { sudo port -v upgrade outdated; sudo port -v uninstall leaves; }"
alias pupgrade="sudo port -v selfupdate && { sudo port -v upgrade outdated; }"

if iscygwin; then
null type windate || alias windate="/c/Windows/System32/cmd.exe //c 'echo %DATE%-%TIME%'"


+ 8
- 0
darwin/updatefiles.sh View File

@@ -0,0 +1,8 @@
port echo requested >port.lst

for f in /opt/local/etc/macports/variants.conf
do
test -r $f && cp -vu $f .
done



+ 7
- 0
emacs.el View File

@@ -361,6 +361,13 @@ otherwise the path where the library installed."
)
(global-whitespace-mode t))

(and nil
(dllib-if-unfound
"http://www.emacswiki.org/emacs/download/fill-column-indicator.el"
t)
(require 'fill-column-indicator nil t)
(setq fill-column-indicator))

;; highlight current line
;; http://wiki.riywo.com/index.php?Meadow
(defface hlline-face


Loading…
Cancel
Save