summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-11-19 13:39:24 +0100
committerQuentin Aristote <quentin@aristote.fr>2021-11-19 13:39:24 +0100
commita5dac72592e755ff039e89511d3e8ec38d05c56b (patch)
tree5d1521355bf09dfa14f92e295a327f5b1f009b24
parent6f80466314dd6be107c9efa2f3d1524642222589 (diff)
add README
-rw-r--r--README.org45
1 files changed, 45 insertions, 0 deletions
diff --git a/README.org b/README.org
new file mode 100644
index 0000000..b4a7e82
--- /dev/null
+++ b/README.org
@@ -0,0 +1,45 @@
+* Introduction
+
+~bibli-paris~ is a Spacemacs layer that adds functionnalities to ~org-mode~ so
+as to enable the management of reading lists of documents from Paris' network of
+libraries.
+
+* Setup
+
+** Enabling the layer
+
+Clone this buffer in your ~.emacs.d/private/layers~ folder and enable the layer
+in your ~.spacemacs~ file.
+
+** Creating a reading list file
+
+First, go to https://bibliotheques.paris.fr/ and look up documents you're
+interested in. Select them and export your selection as a CSV file ~Export.csv~.
+
+Next, create your reading list file ~my_reading_list.org~ and open it in Emacs.
+
+Finally, call the function ~bibli-paris/import-from-csv~ with argument the path
+to ~Export.csv~.
+
+* Commands
+
+The following commands are available.
+
+| Command | Shortcut | Description |
+|---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| ~bibli-paris/mode~ | ~,mb~ | Enable the shortcuts described in this table. |
+| ~bibli-paris/import-from-csv~ | ~,mi~ | Import entries from the CSV file downloaded on https://bibliotheques.paris.fr/. The first argument is the path to the CSV file, and the second and third (optional) arguments are the tags and state to set the imported entries to. |
+| ~bibli-paris/sort~ | ~,ms~ | Sort the entries by their quotes. |
+| ~bibli-paris/update-entry~ | ~,mu~ | Asynchronously update the availability status and quote of the entry at point. |
+| ~bibli-paris/update-entries~ | ~,mU~ | Asynchronously update all the availabity status and quotes of all entries in parallel. |
+| ~bibli-paris/archive-all-read~ | ~,mA~ | Archive all entries in the ~DONE~ state. |
+| ~bibli-paris/number-of-entries~ | ~,m?~ | Display the number of entries in the current buffer. |
+
+* Customization
+
+The following variables may be customized.
+
+| Variable name | Default value | Description |
+|------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| ~bibli-paris/default-library~ | ~"75013 - Jean-Pierre Melville"~ | The library from which to fetch updates. |
+| ~bibli-paris/max-asynchronous-processes~ | ~500~ | The maximum number of asynchronous requests that should be launched in parallel. The default value was determined experimentally to be the maximum allowed by Emacs. |