Explorar el Código

Mention emacs mode with postactiv

Bob Mottram hace 8 años
padre
commit
b542c57399
Se han modificado 2 ficheros con 138 adiciones y 10 borrados
  1. 35
    0
      doc/EN/app_postactiv.org
  2. 103
    10
      website/EN/app_postactiv.html

+ 35
- 0
doc/EN/app_postactiv.org Ver fichero

38
 
38
 
39
 Navigate to your PostActiv domain name and log in.
39
 Navigate to your PostActiv domain name and log in.
40
 
40
 
41
+* Using with Emacs
42
+
43
+#+BEGIN_CENTER
44
+[[file:images/gnu-social-mode.jpg]]
45
+#+END_CENTER
46
+
47
+If you are an Emacs user it's also possible to set up GNU Social mode, which is compatible with PostActiv. You can do that as follows:
48
+
49
+#+begin_src bash :tangle no
50
+mkdir ~/elisp
51
+git clone git://git.savannah.nongnu.org/gnu-social-mode ~/elisp/gnu-social-mode
52
+sed -i 's|"http"|"https"|g' ~/elisp/gnu-social-mode/gnu-social-mode.el
53
+sed -i 's|http:|https:|g' ~/elisp/gnu-social-mode/gnu-social-mode.el
54
+sed -i 's|http?|https?|g' ~/elisp/gnu-social-mode/gnu-social-mode.el
55
+echo "(add-to-list 'load-path \"~/elisp/gnu-social-mode\")" >> ~/.emacs
56
+echo "(require 'gnu-social-mode)" >> ~/.emacs
57
+echo "(setq gnu-social-server-textlimit 2000" >> ~/.emacs
58
+echo "      gnu-social-server \"yourpostactivdomain\"" >> ~/.emacs
59
+echo "    gnu-social-username \"yourusername\"" >> ~/.emacs
60
+echo "    gnu-social-password \"postactivpassword\")" >> ~/.emacs
61
+#+end_src
62
+
63
+And as a quick reference the main keys are:
64
+
65
+| Key           | Function           |
66
+|---------------+--------------------|
67
+| i             | Show icons         |
68
+| CTRL-c CTRL-s | Post status update |
69
+| r             | Repeat             |
70
+| F             | Favourite          |
71
+| R             | Reply to user      |
72
+| CTRL-c CTRL-h | Highlight          |
73
+| CTRL-c CTRL-r | Show replies       |
74
+| CTRL-c CTRL-f | Friends timeline   |
75
+
41
 * Blocking controls
76
 * Blocking controls
42
 #+BEGIN_CENTER
77
 #+BEGIN_CENTER
43
 [[file:images/controlpanel/control_panel_blocking.jpg]]
78
 [[file:images/controlpanel/control_panel_blocking.jpg]]

+ 103
- 10
website/EN/app_postactiv.html Ver fichero

3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5
 <head>
5
 <head>
6
-<!-- 2017-04-27 Thu 15:56 -->
6
+<!-- 2017-04-27 Thu 16:19 -->
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9
 <title></title>
9
 <title></title>
252
 PostActiv is a fork of <a href="./app_gnusocial.html">GNU Social</a> which includes some extra fixes and optimisations to improve performance. It federates just like GNU Social does and so whether you choose GNU Social or PostActiv is really just down to personal prefernce.
252
 PostActiv is a fork of <a href="./app_gnusocial.html">GNU Social</a> which includes some extra fixes and optimisations to improve performance. It federates just like GNU Social does and so whether you choose GNU Social or PostActiv is really just down to personal prefernce.
253
 </p>
253
 </p>
254
 
254
 
255
-<div id="outline-container-orga39c672" class="outline-2">
256
-<h2 id="orga39c672">Installation</h2>
257
-<div class="outline-text-2" id="text-orga39c672">
255
+<div id="outline-container-org35ea621" class="outline-2">
256
+<h2 id="org35ea621">Installation</h2>
257
+<div class="outline-text-2" id="text-org35ea621">
258
 <p>
258
 <p>
259
 Log into your system with:
259
 Log into your system with:
260
 </p>
260
 </p>
278
 </div>
278
 </div>
279
 </div>
279
 </div>
280
 
280
 
281
-<div id="outline-container-org91217d9" class="outline-2">
282
-<h2 id="org91217d9">Initial setup</h2>
283
-<div class="outline-text-2" id="text-org91217d9">
281
+<div id="outline-container-org2389e9d" class="outline-2">
282
+<h2 id="org2389e9d">Initial setup</h2>
283
+<div class="outline-text-2" id="text-org2389e9d">
284
 <p>
284
 <p>
285
 If you have just obtained a Lets Encrypt certificate as above then go to <b>About</b> on the administrator control panel and you should see your Postactiv domain listed there along with an onion address. You can then navigate to your site in a browser.
285
 If you have just obtained a Lets Encrypt certificate as above then go to <b>About</b> on the administrator control panel and you should see your Postactiv domain listed there along with an onion address. You can then navigate to your site in a browser.
286
 </p>
286
 </p>
295
 </div>
295
 </div>
296
 </div>
296
 </div>
297
 
297
 
298
-<div id="outline-container-orge8b197c" class="outline-2">
299
-<h2 id="orge8b197c">Blocking controls</h2>
300
-<div class="outline-text-2" id="text-orge8b197c">
298
+<div id="outline-container-org65da21c" class="outline-2">
299
+<h2 id="org65da21c">Using with Emacs</h2>
300
+<div class="outline-text-2" id="text-org65da21c">
301
+<div class="org-center">
302
+
303
+<div class="figure">
304
+<p><img src="images/gnu-social-mode.jpg" alt="gnu-social-mode.jpg" />
305
+</p>
306
+</div>
307
+</div>
308
+
309
+<p>
310
+If you are an Emacs user it's also possible to set up GNU Social mode, which is compatible with PostActiv. You can do that as follows:
311
+</p>
312
+
313
+<div class="org-src-container">
314
+<pre><code class="src src-bash">mkdir ~/elisp
315
+git clone git://git.savannah.nongnu.org/gnu-social-mode ~/elisp/gnu-social-mode
316
+sed -i <span class="org-string">'s|"http"|"https"|g'</span> ~/elisp/gnu-social-mode/gnu-social-mode.el
317
+sed -i <span class="org-string">'s|http:|https:|g'</span> ~/elisp/gnu-social-mode/gnu-social-mode.el
318
+sed -i <span class="org-string">'s|http?|https?|g'</span> ~/elisp/gnu-social-mode/gnu-social-mode.el
319
+<span class="org-builtin">echo</span> <span class="org-string">"(add-to-list 'load-path \"~/elisp/gnu-social-mode\")"</span> &gt;&gt; ~/.emacs
320
+<span class="org-builtin">echo</span> <span class="org-string">"(require 'gnu-social-mode)"</span> &gt;&gt; ~/.emacs
321
+<span class="org-builtin">echo</span> <span class="org-string">"(setq gnu-social-server-textlimit 2000"</span> &gt;&gt; ~/.emacs
322
+<span class="org-builtin">echo</span> <span class="org-string">"      gnu-social-server \"yourpostactivdomain\""</span> &gt;&gt; ~/.emacs
323
+<span class="org-builtin">echo</span> <span class="org-string">"    gnu-social-username \"yourusername\""</span> &gt;&gt; ~/.emacs
324
+<span class="org-builtin">echo</span> <span class="org-string">"    gnu-social-password \"postactivpassword\")"</span> &gt;&gt; ~/.emacs
325
+</code></pre>
326
+</div>
327
+
328
+<p>
329
+And as a quick reference the main keys are:
330
+</p>
331
+
332
+<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
333
+
334
+
335
+<colgroup>
336
+<col  class="org-left" />
337
+
338
+<col  class="org-left" />
339
+</colgroup>
340
+<thead>
341
+<tr>
342
+<th scope="col" class="org-left">Key</th>
343
+<th scope="col" class="org-left">Function</th>
344
+</tr>
345
+</thead>
346
+<tbody>
347
+<tr>
348
+<td class="org-left">i</td>
349
+<td class="org-left">Show icons</td>
350
+</tr>
351
+
352
+<tr>
353
+<td class="org-left">CTRL-c CTRL-s</td>
354
+<td class="org-left">Post status update</td>
355
+</tr>
356
+
357
+<tr>
358
+<td class="org-left">r</td>
359
+<td class="org-left">Repeat</td>
360
+</tr>
361
+
362
+<tr>
363
+<td class="org-left">F</td>
364
+<td class="org-left">Favourite</td>
365
+</tr>
366
+
367
+<tr>
368
+<td class="org-left">R</td>
369
+<td class="org-left">Reply to user</td>
370
+</tr>
371
+
372
+<tr>
373
+<td class="org-left">CTRL-c CTRL-h</td>
374
+<td class="org-left">Highlight</td>
375
+</tr>
376
+
377
+<tr>
378
+<td class="org-left">CTRL-c CTRL-r</td>
379
+<td class="org-left">Show replies</td>
380
+</tr>
381
+
382
+<tr>
383
+<td class="org-left">CTRL-c CTRL-f</td>
384
+<td class="org-left">Friends timeline</td>
385
+</tr>
386
+</tbody>
387
+</table>
388
+</div>
389
+</div>
390
+
391
+<div id="outline-container-org24360a0" class="outline-2">
392
+<h2 id="org24360a0">Blocking controls</h2>
393
+<div class="outline-text-2" id="text-org24360a0">
301
 <div class="org-center">
394
 <div class="org-center">
302
 
395
 
303
 <div class="figure">
396
 <div class="figure">