Skip to content

Instantly share code, notes, and snippets.

@shoover
Created May 13, 2009 17:21
Show Gist options
  • Save shoover/111138 to your computer and use it in GitHub Desktop.
Save shoover/111138 to your computer and use it in GitHub Desktop.
diff --git a/relax.el b/relax.el
index 4d16beb..eddf99e 100644
--- a/relax.el
+++ b/relax.el
@@ -49,9 +49,10 @@
;;; Code:
+(require 'thingatpt)
(require 'url)
(require 'json)
-(require 'javascript)
+(require 'javascript-mode)
(require 'mm-util) ;; for replace-regexp-in-string
(defvar relax-host "127.0.0.1")
@@ -223,7 +224,7 @@
(interactive)
;; TODO: make sure point is over DB ID.
- (let ((doc-url (concat db-url "/" (word-at-point))))
+ (let ((doc-url (relax-url (word-at-point))))
(url-retrieve doc-url 'relax-doc-load (list doc-url))))
(defun relax-submit ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment