Created
May 13, 2009 17:21
-
-
Save shoover/111138 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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