diff --git a/_keysnail.js b/_keysnail.js index 7ad7914..dfda27d 100644 --- a/_keysnail.js +++ b/_keysnail.js @@ -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 () { diff --git a/bashrc b/bashrc index 87af4d0..3554a10 100755 --- a/bashrc +++ b/bashrc @@ -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%'" diff --git a/darwin/updatefiles.sh b/darwin/updatefiles.sh new file mode 100755 index 0000000..9bc8a63 --- /dev/null +++ b/darwin/updatefiles.sh @@ -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 + + diff --git a/emacs.el b/emacs.el index aab0e03..47fc946 100644 --- a/emacs.el +++ b/emacs.el @@ -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