Permalink
Browse files

added emacs files

  • Loading branch information...
abossard committed Jun 28, 2012
1 parent 125a79e commit b7633b5fbcceec272589ed9bdb5f5dc3b9ef84c6
Showing with 23,979 additions and 0 deletions.
  1. +35 −0 .emacs
  2. 0 .emacs.d/auto-save-list/.saves-235-andre.local~
  3. +80 −0 .emacs.d/chrome_reload.py
  4. +8 −0 .emacs.d/chrome_reload.py~
  5. +938 −0 .emacs.d/dbgp.el
  6. BIN .emacs.d/dbgp.elc
  7. +158 −0 .emacs.d/elpa/ampc-readme.txt
  8. +28 −0 .emacs.d/elpa/android-mode-0.1/android-mode-autoloads.el
  9. +13 −0 .emacs.d/elpa/android-mode-0.1/android-mode-autoloads.el~
  10. +1 −0 .emacs.d/elpa/android-mode-0.1/android-mode-pkg.el
  11. BIN .emacs.d/elpa/android-mode-0.1/android-mode-pkg.elc
  12. +314 −0 .emacs.d/elpa/android-mode-0.1/android-mode.el
  13. BIN .emacs.d/elpa/android-mode-0.1/android-mode.elc
  14. +447 −0 .emacs.d/elpa/archives/elpa/archive-contents
  15. +447 −0 .emacs.d/elpa/archives/elpa/archive-contents~
  16. +137 −0 .emacs.d/elpa/archives/gnu/archive-contents
  17. +137 −0 .emacs.d/elpa/archives/gnu/archive-contents~
  18. +1 −0 .emacs.d/elpa/archives/marmalade/archive-contents
  19. +1 −0 .emacs.d/elpa/archives/marmalade/archive-contents~
  20. +18 −0 .emacs.d/elpa/furl-0.0.2/furl-autoloads.el
  21. +13 −0 .emacs.d/elpa/furl-0.0.2/furl-autoloads.el~
  22. +1 −0 .emacs.d/elpa/furl-0.0.2/furl-pkg.el
  23. BIN .emacs.d/elpa/furl-0.0.2/furl-pkg.elc
  24. +207 −0 .emacs.d/elpa/furl-0.0.2/furl.el
  25. BIN .emacs.d/elpa/furl-0.0.2/furl.elc
  26. +13 −0 .emacs.d/elpa/ioccur-readme.txt
  27. +13 −0 .emacs.d/elpa/ioccur-readme.txt~
  28. +18 −0 .emacs.d/elpa/jade-mode-0.1/jade-mode-autoloads.el
  29. +13 −0 .emacs.d/elpa/jade-mode-0.1/jade-mode-autoloads.el~
  30. +1 −0 .emacs.d/elpa/jade-mode-0.1/jade-mode-pkg.el
  31. BIN .emacs.d/elpa/jade-mode-0.1/jade-mode-pkg.elc
  32. +77 −0 .emacs.d/elpa/jade-mode-0.1/jade-mode.el
  33. BIN .emacs.d/elpa/jade-mode-0.1/jade-mode.elc
  34. +83 −0 .emacs.d/elpa/magit-1.1.1/magit-autoloads.el
  35. +13 −0 .emacs.d/elpa/magit-1.1.1/magit-autoloads.el~
  36. +196 −0 .emacs.d/elpa/magit-1.1.1/magit-bisect.el
  37. BIN .emacs.d/elpa/magit-1.1.1/magit-bisect.elc
  38. +508 −0 .emacs.d/elpa/magit-1.1.1/magit-key-mode.el
  39. BIN .emacs.d/elpa/magit-1.1.1/magit-key-mode.elc
  40. +1 −0 .emacs.d/elpa/magit-1.1.1/magit-pkg.el
  41. BIN .emacs.d/elpa/magit-1.1.1/magit-pkg.elc
  42. +288 −0 .emacs.d/elpa/magit-1.1.1/magit-stgit.el
  43. BIN .emacs.d/elpa/magit-1.1.1/magit-stgit.elc
  44. +240 −0 .emacs.d/elpa/magit-1.1.1/magit-svn.el
  45. BIN .emacs.d/elpa/magit-1.1.1/magit-svn.elc
  46. +191 −0 .emacs.d/elpa/magit-1.1.1/magit-topgit.el
  47. BIN .emacs.d/elpa/magit-1.1.1/magit-topgit.elc
  48. +5,445 −0 .emacs.d/elpa/magit-1.1.1/magit.el
  49. BIN .emacs.d/elpa/magit-1.1.1/magit.elc
  50. +1,331 −0 .emacs.d/elpa/magit-1.1.1/magit.info
  51. +26 −0 .emacs.d/elpa/magit-simple-keys-1.0.0/magit-simple-keys-autoloads.el
  52. +13 −0 .emacs.d/elpa/magit-simple-keys-1.0.0/magit-simple-keys-autoloads.el~
  53. +1 −0 .emacs.d/elpa/magit-simple-keys-1.0.0/magit-simple-keys-pkg.el
  54. +59 −0 .emacs.d/elpa/magit-simple-keys-1.0.0/magit-simple-keys.el
  55. +35 −0 .emacs.d/elpa/magithub-0.2/magithub-autoloads.el
  56. +13 −0 .emacs.d/elpa/magithub-0.2/magithub-autoloads.el~
  57. +1 −0 .emacs.d/elpa/magithub-0.2/magithub-pkg.el
  58. BIN .emacs.d/elpa/magithub-0.2/magithub-pkg.elc
  59. +1,165 −0 .emacs.d/elpa/magithub-0.2/magithub.el
  60. BIN .emacs.d/elpa/magithub-0.2/magithub.elc
  61. +28 −0 .emacs.d/elpa/markdown-mode-1.8.1/markdown-mode-autoloads.el
  62. +13 −0 .emacs.d/elpa/markdown-mode-1.8.1/markdown-mode-autoloads.el~
  63. +1 −0 .emacs.d/elpa/markdown-mode-1.8.1/markdown-mode-pkg.el
  64. BIN .emacs.d/elpa/markdown-mode-1.8.1/markdown-mode-pkg.elc
  65. +2,053 −0 .emacs.d/elpa/markdown-mode-1.8.1/markdown-mode.el
  66. BIN .emacs.d/elpa/markdown-mode-1.8.1/markdown-mode.elc
  67. +18 −0 .emacs.d/elpa/marmalade-0.0.4/marmalade-autoloads.el
  68. +13 −0 .emacs.d/elpa/marmalade-0.0.4/marmalade-autoloads.el~
  69. +1 −0 .emacs.d/elpa/marmalade-0.0.4/marmalade-pkg.el
  70. BIN .emacs.d/elpa/marmalade-0.0.4/marmalade-pkg.elc
  71. +191 −0 .emacs.d/elpa/marmalade-0.0.4/marmalade.el
  72. BIN .emacs.d/elpa/marmalade-0.0.4/marmalade.elc
  73. +99 −0 .emacs.d/elpa/mic-paren-3.8/mic-paren-autoloads.el
  74. +13 −0 .emacs.d/elpa/mic-paren-3.8/mic-paren-autoloads.el~
  75. +1 −0 .emacs.d/elpa/mic-paren-3.8/mic-paren-pkg.el
  76. BIN .emacs.d/elpa/mic-paren-3.8/mic-paren-pkg.elc
  77. +1,237 −0 .emacs.d/elpa/mic-paren-3.8/mic-paren.el
  78. BIN .emacs.d/elpa/mic-paren-3.8/mic-paren.elc
  79. +34 −0 .emacs.d/elpa/minimap-1.0/minimap-autoloads.el
  80. +13 −0 .emacs.d/elpa/minimap-1.0/minimap-autoloads.el~
  81. +1 −0 .emacs.d/elpa/minimap-1.0/minimap-pkg.el
  82. BIN .emacs.d/elpa/minimap-1.0/minimap-pkg.elc
  83. +627 −0 .emacs.d/elpa/minimap-1.0/minimap.el
  84. BIN .emacs.d/elpa/minimap-1.0/minimap.elc
  85. +26 −0 .emacs.d/elpa/pastels-on-dark-theme-0.3/pastels-on-dark-theme-autoloads.el
  86. +13 −0 .emacs.d/elpa/pastels-on-dark-theme-0.3/pastels-on-dark-theme-autoloads.el~
  87. +1 −0 .emacs.d/elpa/pastels-on-dark-theme-0.3/pastels-on-dark-theme-pkg.el
  88. BIN .emacs.d/elpa/pastels-on-dark-theme-0.3/pastels-on-dark-theme-pkg.elc
  89. +72 −0 .emacs.d/elpa/pastels-on-dark-theme-0.3/pastels-on-dark-theme.el
  90. +35 −0 .emacs.d/elpa/php-mode-1.5.0/php-mode-autoloads.el
  91. +13 −0 .emacs.d/elpa/php-mode-1.5.0/php-mode-autoloads.el~
  92. +1 −0 .emacs.d/elpa/php-mode-1.5.0/php-mode-pkg.el
  93. BIN .emacs.d/elpa/php-mode-1.5.0/php-mode-pkg.elc
  94. +1,104 −0 .emacs.d/elpa/php-mode-1.5.0/php-mode.el
  95. BIN .emacs.d/elpa/php-mode-1.5.0/php-mode.elc
  96. +18 −0 .emacs.d/elpa/stylus-mode-0.1/stylus-mode-autoloads.el
  97. +13 −0 .emacs.d/elpa/stylus-mode-0.1/stylus-mode-autoloads.el~
  98. +1 −0 .emacs.d/elpa/stylus-mode-0.1/stylus-mode-pkg.el
  99. BIN .emacs.d/elpa/stylus-mode-0.1/stylus-mode-pkg.elc
  100. +98 −0 .emacs.d/elpa/stylus-mode-0.1/stylus-mode.el
  101. BIN .emacs.d/elpa/stylus-mode-0.1/stylus-mode.elc
  102. +18 −0 .emacs.d/elpa/sws-mode-0.1/sws-mode-autoloads.el
  103. +13 −0 .emacs.d/elpa/sws-mode-0.1/sws-mode-autoloads.el~
  104. +1 −0 .emacs.d/elpa/sws-mode-0.1/sws-mode-pkg.el
  105. BIN .emacs.d/elpa/sws-mode-0.1/sws-mode-pkg.elc
  106. +141 −0 .emacs.d/elpa/sws-mode-0.1/sws-mode.el
  107. BIN .emacs.d/elpa/sws-mode-0.1/sws-mode.elc
  108. +1 −0 .emacs.d/eshell/history
  109. +3,679 −0 .emacs.d/geben.el
  110. BIN .emacs.d/geben.elc
  111. +5 −0 .emacs.d/geben/.storage
  112. +71 −0 .emacs.d/tramp
  113. +5 −0 .emacs.d/tree-widget/.svn/all-wcprops
  114. +31 −0 .emacs.d/tree-widget/.svn/entries
  115. +59 −0 .emacs.d/tree-widget/geben/.svn/all-wcprops
  116. +334 −0 .emacs.d/tree-widget/geben/.svn/entries
  117. +9 −0 .emacs.d/tree-widget/geben/.svn/prop-base/close.png.svn-base
  118. +9 −0 .emacs.d/tree-widget/geben/.svn/prop-base/empty.png.svn-base
  119. +5 −0 .emacs.d/tree-widget/geben/.svn/prop-base/end-guide.png.svn-base
  120. +5 −0 .emacs.d/tree-widget/geben/.svn/prop-base/guide.png.svn-base
  121. +5 −0 .emacs.d/tree-widget/geben/.svn/prop-base/handle.png.svn-base
  122. +9 −0 .emacs.d/tree-widget/geben/.svn/prop-base/leaf.png.svn-base
  123. +5 −0 .emacs.d/tree-widget/geben/.svn/prop-base/no-guide.png.svn-base
  124. +5 −0 .emacs.d/tree-widget/geben/.svn/prop-base/no-handle.png.svn-base
  125. +9 −0 .emacs.d/tree-widget/geben/.svn/prop-base/open.png.svn-base
  126. BIN .emacs.d/tree-widget/geben/.svn/text-base/close.png.svn-base
  127. BIN .emacs.d/tree-widget/geben/.svn/text-base/empty.png.svn-base
  128. BIN .emacs.d/tree-widget/geben/.svn/text-base/end-guide.png.svn-base
  129. BIN .emacs.d/tree-widget/geben/.svn/text-base/guide.png.svn-base
  130. BIN .emacs.d/tree-widget/geben/.svn/text-base/handle.png.svn-base
  131. BIN .emacs.d/tree-widget/geben/.svn/text-base/leaf.png.svn-base
  132. BIN .emacs.d/tree-widget/geben/.svn/text-base/no-guide.png.svn-base
  133. BIN .emacs.d/tree-widget/geben/.svn/text-base/no-handle.png.svn-base
  134. BIN .emacs.d/tree-widget/geben/.svn/text-base/open.png.svn-base
  135. BIN .emacs.d/tree-widget/geben/close.png
  136. BIN .emacs.d/tree-widget/geben/empty.png
  137. BIN .emacs.d/tree-widget/geben/end-guide.png
  138. BIN .emacs.d/tree-widget/geben/guide.png
  139. BIN .emacs.d/tree-widget/geben/handle.png
  140. BIN .emacs.d/tree-widget/geben/leaf.png
  141. BIN .emacs.d/tree-widget/geben/no-guide.png
  142. BIN .emacs.d/tree-widget/geben/no-handle.png
  143. BIN .emacs.d/tree-widget/geben/open.png
  144. +15 −0 .emacs.d/url/cookies
  145. +15 −0 .emacs.d/url/cookies~
  146. +1,064 −0 .emacs.d/zencoding-mode.el
View
35 .emacs
@@ -0,0 +1,35 @@
+(add-to-list 'load-path "~/.emacs.d/")
+(autoload 'geben "geben" "PHP Debugger on Emacs" t)
+(server-start)
+;(setq server-socket-dir (format "/tmp/emacs%d" (user-uid)))
+(require 'package)
+;; Add the original Emacs Lisp Package Archive
+(add-to-list 'package-archives
+ '("elpa" . "http://tromey.com/elpa/"))
+;; Add the user-contributed repository
+(add-to-list 'package-archives
+ '("marmalade" . "http://marmalade-repo.org/packages/"))
+(package-initialize)
+
+(custom-set-variables
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(backup-directory-alist (quote ((".*" . "~/.emacs/backups"))))
+ '(custom-safe-themes (quote ("30fe7e72186c728bd7c3e1b8d67bc10b846119c45a0f35c972ed427c45bacc19" default)))
+ '(dired-auto-revert-buffer (quote dired-directory-changed-p))
+ '(ns-pop-up-frames nil))
+(custom-set-faces
+ ;; custom-set-faces was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ )
+(load-theme 'pastels-on-dark t)
+(if (boundp 'osx-key-mode-map)
+(setq hah-key-map osx-key-mode-map)
+(setq hah-key-map global-map))(define-key hah-key-map [home] 'beginning-of-line)
+(define-key hah-key-map [end] 'end-of-line)
+(define-key hah-key-map [C-home] 'beginning-of-buffer)
+(define-key hah-key-map [C-end] 'end-of-buffer)
View
@@ -0,0 +1,80 @@
+#!/usr/bin/env python
+#
+#
+# Reload Chrome on port 9222
+# Code forked and modified by Strzelewicz Alexandre
+#
+# Thanks to :
+# http://pypi.python.org/pypi/chrome_remote_shell/
+# http://www.emacswiki.org/emacs/SaveAndReloadBrowser
+#
+
+try:
+ import json
+except ImportError:
+ import simplejson as json
+import socket
+
+import sys
+
+HANDSHAKE = 'ChromeDevToolsHandshake\r\n'
+RESPONSELESS_COMMANDS = ['evaluate_javascript']
+
+class Shell(object):
+ """A remote debugging connection to Google Chrome."""
+
+ def __init__(self, host='localhost', port=9222):
+ self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ self.socket.connect((host, port))
+ self.socket.send(HANDSHAKE)
+ assert self.socket.recv(len(HANDSHAKE)) == HANDSHAKE
+
+ def request(self, tool, destination=None, **kw):
+ """Send a command to a tool supported by Google Chrome.
+
+ `tool` - 'DevToolsService' or 'V8Debugger'
+ other arguments - Combined to form the JSON request object
+
+ """
+ j = json.dumps(kw)
+ request = 'Content-Length:%d\r\nTool:%s\r\n' % (len(j), tool)
+ if destination:
+ request += 'Destination:%s\r\n' % (destination,)
+ request += '\r\n%s\r\n' % (j,)
+ self.socket.send(request)
+ if kw.get('command', '') not in RESPONSELESS_COMMANDS:
+ response = self.socket.recv(30000) # ugh
+ j = response.split('\r\n\r\n', 1)[1]
+ return json.loads(j)
+
+ def open_url(self, url):
+ """Open a URL in a new tab."""
+ response = self.request('DevToolsService', command='list_tabs')
+ tabs = response['data']
+ first_tab = tabs[0]
+ tab_id = first_tab[0]
+ javascript = "window.open(%r, '_blank');" % (url,)
+ self.request('V8Debugger', destination=tab_id,
+ command='evaluate_javascript', data=javascript)
+
+
+if len(sys.argv) < 2:
+ url = 'localhost'
+else:
+ url = sys.argv[1]
+
+shell = Shell('localhost', 9222)
+response = shell.request('DevToolsService', command='list_tabs')
+tabs_with_url = []
+
+for el in response['data']:
+ if el[1].find(url) > -1:
+ tabs_with_url.append(el[0])
+
+for tab in tabs_with_url:
+ shell.request('V8Debugger',
+ destination=tab,
+ command='evaluate_javascript',
+ data="window.location = window.location;")
+
+print "Succesfully refreshed ==> " + str(len(tabs_with_url)) + " <== Chrome tabs containing the url = " + url
@@ -0,0 +1,8 @@
+#!/usr/bin/env python
+import chrome_remote_shell
+shell = chrome_remote_shell.open(port=9222)
+response = shell.request('DevToolsService', command='list_tabs')
+tabs = response['data']
+first_tab = tabs[0]
+tab_id = first_tab[0]
+shell.request('V8Debugger', destination=tab_id, command='evaluate_javascript', data="window.location = window.location;")
Oops, something went wrong.

0 comments on commit b7633b5

Please sign in to comment.