0
;; Try to use tramp instead of shelling out to scp (tramp-handle-copy-file)
0
-;; Investigate htmlfontify.el instead of htmlize.el
0
;; Make htmlize convert all URLs to hyperlinks
0
@@ -134,8 +133,8 @@ You must have write-access to this directory via `scp'.")
0
(let ((full-url (concat scpaste-http-destination "/"
0
(url-hexify-string window-name) ".png")))
0
(eshell-command (format "import -window %s %s/scpaste.png" window-name scpaste-tmp-dir))
0
- (eshell-command (format "scp %s/scpaste.png %s/%s.png" scpaste-tmp-dir full-url))
0
+ (eshell-command (format "scp %s/scpaste.png %s/%s.png" scpaste-tmp-dir full-url window-name))
0
(message "Pasted to %s (on kill ring)" full-url)))
0
@@ -153,9 +152,9 @@ You must have write-access to this directory via `scp'.")
0
(insert-file-contents "~/.emacs.d/scpaste.el") ;; TODO: find elisp's __FILE__
0
(goto-char (point-min))
0
(search-forward ";;; Commentary")
0
(insert "\n;;; Pasted Files\n\n")
0
- (mapc
ar (lambda (file) (insert (concat ";; * <" scpaste-http-destination "/" file ">\n"))) file-list)
0
+ (mapc
(lambda (file) (insert (concat ";; * <" scpaste-http-destination "/" file ">\n"))) file-list)
0
(emacs-lisp-mode) (font-lock-fontify-buffer) (rename-buffer "SCPaste")
0
(ignore-errors (kill-buffer "*EShell Command Output*")))))
Comments
No one has commented yet.