Upload regions, buffers, and files to various hosts
This repository has been archived on 2021-02-16. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2020-02-15 11:16:59 -07:00
emacs-upload.el git on! 2020-02-15 10:56:51 -07:00
README.org Formatting 2020-02-15 11:16:59 -07:00

emacs-upload.el

Upload regions, buffers, and files to various hosts.

Dependencies

System

cURL

Emacs

  • cl
  • json

Usage

Place emacs-upload.el in load-path and load the package:

(require 'emacs-upload)

Optionally, bind the interactive function emacs-upload to some key:

(global-set-key (kbd "C-c e") 'emacs-upload)

Optionally, set the host upon emacs init:

(emacs-upload/set-host "ix")

emacs-upload/set-host is also an interactive command, so you can change your host on the fly.

Alternatively, do all three with use-package:

(use-package emacs-upload
:demand t
:bind
("C-c e" . emacs-upload)
:config
(emacs-upload/set-host "ix"))

To upload the region, simply select the region and call emacs-upload. To upload the whole buffer, have no region selected and call emacs-upload. For a file, use the universal argument C-u before calling emacs-upload.