FUCK
This commit is contained in:
parent
f30e790684
commit
9b7cbd49ba
26
README.org
26
README.org
@ -4,30 +4,30 @@ Upload regions, buffers, and files to various hosts.
|
|||||||
|
|
||||||
* Dependencies
|
* Dependencies
|
||||||
** System
|
** System
|
||||||
- ~cURL~
|
- ~cURL~
|
||||||
** Emacs
|
** Emacs
|
||||||
- ~cl~
|
- ~cl~
|
||||||
- ~json~
|
- ~json~
|
||||||
|
|
||||||
* Usage
|
* Usage
|
||||||
Place emacs-upload.el in ~load-path~ and load the package
|
Place emacs-upload.el in ~load-path~ and load the package
|
||||||
#+BEGIN_SRC: emacs-lisp
|
#+BEGIN_SRC: emacs-lisp
|
||||||
(require 'emacs-upload)
|
(require 'emacs-upload)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Optionally, bind the interactive function ~emacs-upload~ to some key
|
Optionally, bind the interactive function ~emacs-upload~ to some key
|
||||||
#+BEGIN_SRC: emacs-lisp
|
#+BEGIN_SRC: emacs-lisp
|
||||||
(global-set-key (kbd "C-c e") 'emacs-upload)
|
(global-set-key (kbd "C-c e") 'emacs-upload)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Optionally, set the host upon emacs init
|
Optionally, set the host upon emacs init
|
||||||
#+BEGIN_SRC: emacs-lisp
|
#+BEGIN_SRC: emacs-lisp
|
||||||
(emacs-upload/set-host "ix")
|
(emacs-upload/set-host "ix")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
~emacs-upload/set-host~ is also an interactive command, so you can
|
~emacs-upload/set-host~ is also an interactive command, so you can
|
||||||
change your host on the fly.
|
change your host on the fly.
|
||||||
|
|
||||||
Alternatively, do all three with ~use-package~
|
Alternatively, do all three with ~use-package~
|
||||||
#+BEGIN_SRC
|
#+BEGIN_SRC
|
||||||
(use-package emacs-upload
|
(use-package emacs-upload
|
||||||
:demand t
|
:demand t
|
||||||
@ -37,7 +37,7 @@ Upload regions, buffers, and files to various hosts.
|
|||||||
(emacs-upload/set-host "ix"))
|
(emacs-upload/set-host "ix"))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
To upload the region, simply select the region and call
|
To upload the region, simply select the region and call
|
||||||
emacs-upload. To upload the whole buffer, have no region selected
|
emacs-upload. To upload the whole buffer, have no region selected
|
||||||
and call emacs-upload. For a file, use the universal argument ~C-u~
|
and call emacs-upload. For a file, use the universal argument C-u
|
||||||
before calling emacs-upload.
|
before calling emacs-upload.
|
||||||
|
Reference in New Issue
Block a user