Mention emacs mode with postactiv

This commit is contained in:
Bob Mottram 2017-04-27 16:20:24 +01:00
parent 3cd53452e0
commit b542c57399
2 changed files with 138 additions and 10 deletions

View File

@ -38,6 +38,41 @@ To see the login password for your site go to *Passwords* on the *Administrator
Navigate to your PostActiv domain name and log in. Navigate to your PostActiv domain name and log in.
* Using with Emacs
#+BEGIN_CENTER
[[file:images/gnu-social-mode.jpg]]
#+END_CENTER
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:
#+begin_src bash :tangle no
mkdir ~/elisp
git clone git://git.savannah.nongnu.org/gnu-social-mode ~/elisp/gnu-social-mode
sed -i 's|"http"|"https"|g' ~/elisp/gnu-social-mode/gnu-social-mode.el
sed -i 's|http:|https:|g' ~/elisp/gnu-social-mode/gnu-social-mode.el
sed -i 's|http?|https?|g' ~/elisp/gnu-social-mode/gnu-social-mode.el
echo "(add-to-list 'load-path \"~/elisp/gnu-social-mode\")" >> ~/.emacs
echo "(require 'gnu-social-mode)" >> ~/.emacs
echo "(setq gnu-social-server-textlimit 2000" >> ~/.emacs
echo " gnu-social-server \"yourpostactivdomain\"" >> ~/.emacs
echo " gnu-social-username \"yourusername\"" >> ~/.emacs
echo " gnu-social-password \"postactivpassword\")" >> ~/.emacs
#+end_src
And as a quick reference the main keys are:
| Key | Function |
|---------------+--------------------|
| i | Show icons |
| CTRL-c CTRL-s | Post status update |
| r | Repeat |
| F | Favourite |
| R | Reply to user |
| CTRL-c CTRL-h | Highlight |
| CTRL-c CTRL-r | Show replies |
| CTRL-c CTRL-f | Friends timeline |
* Blocking controls * Blocking controls
#+BEGIN_CENTER #+BEGIN_CENTER
[[file:images/controlpanel/control_panel_blocking.jpg]] [[file:images/controlpanel/control_panel_blocking.jpg]]

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2017-04-27 Thu 15:56 --> <!-- 2017-04-27 Thu 16:19 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title> <title></title>
@ -252,9 +252,9 @@ for the JavaScript code in this tag.
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. 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.
</p> </p>
<div id="outline-container-orga39c672" class="outline-2"> <div id="outline-container-org35ea621" class="outline-2">
<h2 id="orga39c672">Installation</h2> <h2 id="org35ea621">Installation</h2>
<div class="outline-text-2" id="text-orga39c672"> <div class="outline-text-2" id="text-org35ea621">
<p> <p>
Log into your system with: Log into your system with:
</p> </p>
@ -278,9 +278,9 @@ After the install has completed go to <b>Security settings</b> and select <b>Cre
</div> </div>
</div> </div>
<div id="outline-container-org91217d9" class="outline-2"> <div id="outline-container-org2389e9d" class="outline-2">
<h2 id="org91217d9">Initial setup</h2> <h2 id="org2389e9d">Initial setup</h2>
<div class="outline-text-2" id="text-org91217d9"> <div class="outline-text-2" id="text-org2389e9d">
<p> <p>
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. 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.
</p> </p>
@ -295,9 +295,102 @@ Navigate to your PostActiv domain name and log in.
</div> </div>
</div> </div>
<div id="outline-container-orge8b197c" class="outline-2"> <div id="outline-container-org65da21c" class="outline-2">
<h2 id="orge8b197c">Blocking controls</h2> <h2 id="org65da21c">Using with Emacs</h2>
<div class="outline-text-2" id="text-orge8b197c"> <div class="outline-text-2" id="text-org65da21c">
<div class="org-center">
<div class="figure">
<p><img src="images/gnu-social-mode.jpg" alt="gnu-social-mode.jpg" />
</p>
</div>
</div>
<p>
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:
</p>
<div class="org-src-container">
<pre><code class="src src-bash">mkdir ~/elisp
git clone git://git.savannah.nongnu.org/gnu-social-mode ~/elisp/gnu-social-mode
sed -i <span class="org-string">'s|"http"|"https"|g'</span> ~/elisp/gnu-social-mode/gnu-social-mode.el
sed -i <span class="org-string">'s|http:|https:|g'</span> ~/elisp/gnu-social-mode/gnu-social-mode.el
sed -i <span class="org-string">'s|http?|https?|g'</span> ~/elisp/gnu-social-mode/gnu-social-mode.el
<span class="org-builtin">echo</span> <span class="org-string">"(add-to-list 'load-path \"~/elisp/gnu-social-mode\")"</span> &gt;&gt; ~/.emacs
<span class="org-builtin">echo</span> <span class="org-string">"(require 'gnu-social-mode)"</span> &gt;&gt; ~/.emacs
<span class="org-builtin">echo</span> <span class="org-string">"(setq gnu-social-server-textlimit 2000"</span> &gt;&gt; ~/.emacs
<span class="org-builtin">echo</span> <span class="org-string">" gnu-social-server \"yourpostactivdomain\""</span> &gt;&gt; ~/.emacs
<span class="org-builtin">echo</span> <span class="org-string">" gnu-social-username \"yourusername\""</span> &gt;&gt; ~/.emacs
<span class="org-builtin">echo</span> <span class="org-string">" gnu-social-password \"postactivpassword\")"</span> &gt;&gt; ~/.emacs
</code></pre>
</div>
<p>
And as a quick reference the main keys are:
</p>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Key</th>
<th scope="col" class="org-left">Function</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left">i</td>
<td class="org-left">Show icons</td>
</tr>
<tr>
<td class="org-left">CTRL-c CTRL-s</td>
<td class="org-left">Post status update</td>
</tr>
<tr>
<td class="org-left">r</td>
<td class="org-left">Repeat</td>
</tr>
<tr>
<td class="org-left">F</td>
<td class="org-left">Favourite</td>
</tr>
<tr>
<td class="org-left">R</td>
<td class="org-left">Reply to user</td>
</tr>
<tr>
<td class="org-left">CTRL-c CTRL-h</td>
<td class="org-left">Highlight</td>
</tr>
<tr>
<td class="org-left">CTRL-c CTRL-r</td>
<td class="org-left">Show replies</td>
</tr>
<tr>
<td class="org-left">CTRL-c CTRL-f</td>
<td class="org-left">Friends timeline</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="outline-container-org24360a0" class="outline-2">
<h2 id="org24360a0">Blocking controls</h2>
<div class="outline-text-2" id="text-org24360a0">
<div class="org-center"> <div class="org-center">
<div class="figure"> <div class="figure">