Commit Graph

26 Commits

Author SHA1 Message Date
Martin Joerg a78e30fa82 Update Package-Requires to include elpher and gemini-mode
The Package-Requires header was missing some dependencies.
2021-05-06 07:19:48 +02:00
Case Duckworth 9914f3b68b Merge branch 'master' of https://alexschroeder.ch/cgit/gemini-write 2021-04-26 15:57:37 -05:00
Alex Schroeder 49f273459b Load saved pages in elpher-buffer-name
The old solution didn't really work all that well: you look at a page,
then you load the raw copy, you edit it, it finds the buffer
containing the raw copy (great!), reloads, it gets redirected to the
original page (great!). Then you return to the edit buffer, make a
change and save: now it doesn't find the buffer containing the raw
copy (since the Elpher buffer is showing the original page after the
redirect!) and so a new Elpher buffer gets created, which is then
redirected to the original page (now you have two of them). And if you
make another edit, you have three, and so on, forever. This is lame.
2021-03-27 22:52:08 +01:00
Case Duckworth fe0ac09a69 Use `add-hook' instead of `add-to-list'
`add-to-list' causes issues when used in conjunction with another hook.  For
example, in my config I add a hook using the standard `add-hook' function, which
initializes (apparently) `gemini-mode-hook' with /just/ the function I add.
Subsequent calls to `add-hook' convert the singleton to a list and add to it,
but `add-to-list' throws an error because `gemini-mode-hook' isn't a list.

Emacs ... eh?
2021-02-12 18:28:30 -06:00
Alex Schroeder fd76095f83 Replace some instances of if with when 2021-01-15 00:17:38 +01:00
Ashley Duckworth e975fa032d Enable gemini-write to use the auth-source library 2021-01-14 16:55:52 -06:00
Alex Schroeder a96d087104 Add emacswiki.org 2020-10-28 15:06:39 +01:00
Alex Schroeder 1fc3acd56f Remember point when editing 2020-08-26 16:47:55 +02:00
Alex Schroeder d1c30cd046 Improve installation instructions 2020-08-06 20:02:04 +02:00
Alex Schroeder 3057af1f1b Add toki.transjovian.org to elpher-gemini-tokens 2020-08-06 20:01:45 +02:00
Alex Schroeder 92f2934006 Add token for next.oddmuse.org 2020-08-04 07:43:13 +02:00
Alex Schroeder 610c69716e Fix header line format 2020-08-04 07:42:52 +02:00
Alex Schroeder ba3e9fee35 Add gemini-write-file to upload files 2020-07-30 23:24:02 +02:00
Alex Schroeder 5daeb1da4e Fix handling of current page
We can't push titan into the address of the current page because if we
do, once we create a new buffer, we can't follow the redirect: it
points the old current-page, which now contains the titan scheme.

Also, if we create a new buffer because no elpher buffer is showing
our editor's current page, put that new buffer in elpher mode and set
a current page. If we don't use elpher mode, or doesn't have a current
page, following the redirect runs into errors.
2020-07-19 00:32:44 +02:00
Alex Schroeder c1d7deea5f Rewrite: use a separate buffer, now
This avoids our edit being lost when a save fails. Also check to make
sure that we're only editing plain text files.
2020-07-18 08:36:22 +02:00
Alex Schroeder 7cf5c66bac Add transjovian.org token 2020-07-17 23:02:58 +02:00
Alex Schroeder 50cdfe02bc Delete gemini-wiki
There are better solutions for this, now.
2020-07-17 23:01:47 +02:00
Alex Schroeder 014c6dc353 Add 127.0.0.1 in case you're testing 2020-07-13 10:21:12 +02:00
Alex Schroeder def09ad6e9 with-elpher-variables macro to save locals 2020-07-13 10:20:54 +02:00
Alex Schroeder 027861c193 Add the Gemini Test Wiki to the README 2020-07-01 17:26:05 +02:00
Alex Schroeder d82c1cb4e5 Update the README 2020-06-19 15:19:42 +02:00
Alex Schroeder 5b635824dd Adapting the code for Elpher v2.8.0 2020-06-19 15:11:08 +02:00
Alex Schroeder eebc47ca6e Change the token for communitywiki.org to "hello" 2020-06-16 21:17:33 +02:00
Alex Schroeder 5d0ecb3561 Add a bash script
Add a token for communitywiki.org to elpher-gemini-tokens.
2020-06-14 23:08:28 +02:00
Alex Schroeder 25fecb9457 Switching from gemini+write to titan 2020-06-14 12:34:15 +02:00
Alex Schroeder c7ba01aff5 Initial checkin 2020-06-05 14:11:07 +02:00