소스 검색

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

pull/1/head
10sr 12 년 전
부모
커밋
63cd263a77
4개의 변경된 파일17개의 추가작업 그리고 39개의 파일을 삭제
  1. +1
    -38
      _keysnail.js
  2. +1
    -1
      bashrc
  3. +8
    -0
      darwin/updatefiles.sh
  4. +7
    -0
      emacs.el

+ 1
- 38
_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 () {


+ 1
- 1
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%'"


+ 8
- 0
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



+ 7
- 0
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


불러오는 중...
취소
저장