mirror of
https://github.com/SqrtMinusOne/sqrtminusone.github.io.git
synced 2025-12-10 15:53:03 +03:00
deploy: 4e22bc2d2e
This commit is contained in:
parent
3a195580c3
commit
38ef08d691
11 changed files with 140 additions and 58 deletions
|
|
@ -523,7 +523,16 @@
|
|||
</span></span><span style="display:flex;"><span> <span style="color:#008000">eval</span> <span style="color:#19177c">$EDITOR</span> <span style="color:#19177c">$argv</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#008000;font-weight:bold">end</span>
|
||||
</span></span></code></pre></div><h3 id="direnv">direnv</h3>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-fish" data-lang="fish"><span style="display:flex;"><span><span style="color:#00f">direnv</span> hook <span style="color:#008000">fish</span> <span style="color:#666">|</span> <span style="color:#008000">source</span>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-fish" data-lang="fish"><span style="display:flex;"><span><span style="color:#008000;font-weight:bold">if</span> <span style="color:#008000">type</span> <span style="color:#7d9029">-q</span> direnv
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#00f">direnv</span> hook <span style="color:#008000">fish</span> <span style="color:#666">|</span> <span style="color:#008000">source
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#008000"></span><span style="color:#008000;font-weight:bold">end</span>
|
||||
</span></span></code></pre></div><h3 id="atuin">atuin</h3>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-fish" data-lang="fish"><span style="display:flex;"><span><span style="color:#008000;font-weight:bold">if</span> <span style="color:#008000">type</span> <span style="color:#7d9029">-q</span> atuin
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000;font-weight:bold">set</span> <span style="color:#7d9029">-gx</span> <span style="color:#19177c">ATUIN_NOBIND</span> <span style="color:#ba2121">"true"</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#00f">atuin</span> init <span style="color:#008000">fish</span> <span style="color:#666">|</span> <span style="color:#008000">source
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#008000"> bind</span> <span style="color:#b62;font-weight:bold">\c</span>r _atuin_search
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">bind</span> <span style="color:#7d9029">-M</span> insert <span style="color:#b62;font-weight:bold">\c</span>r _atuin_search
|
||||
</span></span><span style="display:flex;"><span><span style="color:#008000;font-weight:bold">end</span>
|
||||
</span></span></code></pre></div><h2 id="nushell">Nushell</h2>
|
||||
<table>
|
||||
<thead>
|
||||
|
|
@ -833,6 +842,12 @@
|
|||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span>[processes]
|
||||
</span></span><span style="display:flex;"><span>columns = [<span style="color:#ba2121">"PID"</span>, <span style="color:#ba2121">"State"</span>, <span style="color:#ba2121">"Name"</span>, <span style="color:#ba2121">"CPU%"</span>, <span style="color:#ba2121">"Mem%"</span>, <span style="color:#ba2121">"R/s"</span>, <span style="color:#ba2121">"W/s"</span>, <span style="color:#ba2121">"User"</span>]
|
||||
</span></span></code></pre></div><h2 id="atuin-1">Atuin</h2>
|
||||
<p><a href="https://github.com/atuinsh/atuin">atuin</a> is a tool that replaces shell history with a SQLite database, providing some additional functionality.</p>
|
||||
<p>See <a href="https://docs.atuin.sh/configuration/config/">config reference</a>.</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-toml" data-lang="toml"><span style="display:flex;"><span>update_check = <span style="color:#008000;font-weight:bold">false</span>
|
||||
</span></span><span style="display:flex;"><span>enter_accept = <span style="color:#008000;font-weight:bold">true</span>
|
||||
</span></span><span style="display:flex;"><span>keymap_mode = <span style="color:#ba2121">"vim-insert"</span>
|
||||
</span></span></code></pre></div><h2 id="various-console-applications">Various console applications</h2>
|
||||
<table>
|
||||
<thead>
|
||||
|
|
@ -1165,6 +1180,7 @@
|
|||
<li><a href="#keybindings">Keybindings</a></li>
|
||||
<li><a href="#functions">Functions</a></li>
|
||||
<li><a href="#direnv">direnv</a></li>
|
||||
<li><a href="#atuin">atuin</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#nushell">Nushell</a></li>
|
||||
|
|
@ -1179,6 +1195,7 @@
|
|||
</li>
|
||||
<li><a href="#alacritty">Alacritty</a></li>
|
||||
<li><a href="#bottom">Bottom</a></li>
|
||||
<li><a href="#atuin-1">Atuin</a></li>
|
||||
<li><a href="#various-console-applications">Various console applications</a>
|
||||
<ul>
|
||||
<li><a href="#ripgrep-config">ripgrep config</a></li>
|
||||
|
|
|
|||
|
|
@ -986,7 +986,13 @@ Emacs is also particularly great at writing Lisp code, e.g. Clojure, Common Lisp
|
|||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span>(<span style="color:#19177c">general-nmap</span> <span style="color:#ba2121">"C-p"</span> <span style="color:#19177c">'counsel-projectile-find-file</span>)
|
||||
</span></span></code></pre></div><h4 id="git-and-magit">Git & Magit</h4>
|
||||
<p><a href="https://magit.vc/">Magit</a> is a git interface for Emacs. The closest non-Emacs alternative (sans actual clones) I know is <a href="https://github.com/jesseduffield/lazygit">lazygit</a>, which I used before Emacs.</p>
|
||||
<p><a href="https://magit.vc/">Magit</a> is a git interface for Emacs.</p>
|
||||
<p>A few CLI alternatives:</p>
|
||||
<ul>
|
||||
<li><a href="https://github.com/jesseduffield/lazygit">lazygit</a>. I used it before Emacs</li>
|
||||
<li><a href="https://github.com/altsem/gitu">gitu</a>. A CLI magit clone</li>
|
||||
</ul>
|
||||
<!--listend-->
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">use-package</span> <span style="color:#19177c">magit</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:straight</span> <span style="color:#800">t</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:commands</span> (<span style="color:#19177c">magit-status</span> <span style="color:#19177c">magit-file-dispatch</span>)
|
||||
|
|
@ -1004,7 +1010,7 @@ Emacs is also particularly great at writing Lisp code, e.g. Clojure, Common Lisp
|
|||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">lines</span>
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">show-lines</span> <span style="color:#666">.</span> <span style="color:#800">t</span>)
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">show-message</span> <span style="color:#666">.</span> <span style="color:#800">t</span>)))))
|
||||
</span></span></code></pre></div><p><a href="https://github.com/emacsorphanage/git-gutter">git-gutter</a> is a package which shows git changes for each line (added/changed/deleted lines).</p>
|
||||
</span></span></code></pre></div><p><a href="https://github.com/emacsorphanage/git-gutter">git-gutter</a> is shows git changes for each line (added/changed/deleted lines).</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">use-package</span> <span style="color:#19177c">git-gutter</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:straight</span> <span style="color:#800">t</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:if</span> (<span style="color:#19177c">not</span> <span style="color:#19177c">my/slow-ssh</span>)
|
||||
|
|
@ -1014,6 +1020,53 @@ Emacs is also particularly great at writing Lisp code, e.g. Clojure, Common Lisp
|
|||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">use-package</span> <span style="color:#19177c">git-timemachine</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:straight</span> <span style="color:#800">t</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:commands</span> (<span style="color:#19177c">git-timemachine</span>))
|
||||
</span></span></code></pre></div><table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Guix dependency</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>difftastic-bin</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p><a href="https://github.com/pkryger/difftastic.el">difftastic.el</a> is a wrapper package for <a href="https://difftastic.wilfred.me.uk/">difftastic</a>.</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">use-package</span> <span style="color:#19177c">difftastic</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:straight</span> <span style="color:#800">t</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:commands</span> (<span style="color:#19177c">difftastic-magit-diff</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#19177c">difftastic-magit-show</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#19177c">difftastic-files</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#19177c">difftastic-buffers</span>)
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:init</span>
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#008000">with-eval-after-load</span> <span style="color:#19177c">'magit-diff</span>
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">transient-append-suffix</span> <span style="color:#19177c">'magit-diff</span> <span style="color:#666">'</span>(<span style="color:#666">-1</span> <span style="color:#666">-1</span>)
|
||||
</span></span><span style="display:flex;"><span> [(<span style="color:#ba2121">"D"</span> <span style="color:#ba2121">"Difftastic diff (dwim)"</span> <span style="color:#19177c">difftastic-magit-diff</span>)
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#ba2121">"S"</span> <span style="color:#ba2121">"Difftastic show"</span> <span style="color:#19177c">difftastic-magit-show</span>)])
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">general-define-key</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:keymaps</span> <span style="color:#19177c">'magit-blame-read-only-mode-map</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:states</span> <span style="color:#19177c">'normal</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"D"</span> <span style="color:#00f">#'</span><span style="color:#19177c">difftastic-magit-show</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"S"</span> <span style="color:#00f">#'</span><span style="color:#19177c">difftastic-magit-show</span>))
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:config</span>
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#008000">setq</span> <span style="color:#19177c">difftastic-executable</span> (<span style="color:#19177c">executable-find</span> <span style="color:#ba2121">"difft"</span>))
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">general-define-key</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:keymaps</span> <span style="color:#19177c">'difftastic-mode-map</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:states</span> <span style="color:#666">'</span>(<span style="color:#19177c">normal</span>)
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"gr"</span> <span style="color:#00f">#'</span><span style="color:#19177c">difftastic-rerun</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"q"</span> <span style="color:#00f">#'</span><span style="color:#19177c">kill-buffer-and-window</span>))
|
||||
</span></span></code></pre></div><p>My screen isn’t wide enough to run <code>difftastic</code> in vertical split, so…</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">defun</span> <span style="color:#19177c">my/difftastic-pop-at-bottom</span> (<span style="color:#19177c">buffer-or-name</span> <span style="color:#19177c">_requested-width</span>)
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#008000">let</span> ((<span style="color:#19177c">window</span> (<span style="color:#19177c">split-window-below</span>)))
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#00f">select-window</span> <span style="color:#19177c">window</span>)
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">evil-move-window</span> <span style="color:#19177c">'below</span>))
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#00f">set-window-buffer</span> (<span style="color:#00f">selected-window</span>) <span style="color:#19177c">buffer-or-name</span>))
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span>(<span style="color:#008000">setq</span> <span style="color:#19177c">difftastic-display-buffer-function</span> <span style="color:#00f">#'</span><span style="color:#19177c">my/difftastic-pop-at-bottom</span>)
|
||||
</span></span></code></pre></div><p>And I suspect the built-in window width function doesn’t work as intended because of <code>global-display-line-numbers-mode</code>.</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">setq</span> <span style="color:#19177c">difftastic-requested-window-width-function</span>
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#008000">lambda</span> () (<span style="color:#00f">-</span> (<span style="color:#19177c">frame-width</span>) <span style="color:#666">4</span>)))
|
||||
</span></span></code></pre></div><h4 id="forge-and-code-review">Forge and code-review</h4>
|
||||
<p><a href="https://github.com/magit/forge">forge</a> provides integration with forges, such as GitHub and GitLab.</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">use-package</span> <span style="color:#19177c">forge</span>
|
||||
|
|
@ -1267,7 +1320,8 @@ Emacs is also particularly great at writing Lisp code, e.g. Clojure, Common Lisp
|
|||
</span></span><span style="display:flex;"><span> <span style="color:#19177c">dired-recent-open</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#19177c">org-ql-view</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#19177c">my/index-nav</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#19177c">org-set-effort</span>))
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#19177c">org-set-effort</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#19177c">eshell-atuin-history</span>))
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#408080;font-style:italic">;; Do not use prescient in find-file</span>
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">ivy--alist-set</span> <span style="color:#19177c">'ivy-sort-functions-alist</span> <span style="color:#00f">#'</span><span style="color:#19177c">read-file-name-internal</span> <span style="color:#00f">#'</span><span style="color:#19177c">ivy-sort-file-function-default</span>))
|
||||
</span></span></code></pre></div><h4 id="keybindings-1">keybindings</h4>
|
||||
|
|
@ -3924,7 +3978,8 @@ Emacs is also particularly great at writing Lisp code, e.g. Clojure, Common Lisp
|
|||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">plantuml</span> <span style="color:#666">.</span> <span style="color:#800">t</span>)
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">octave</span> <span style="color:#666">.</span> <span style="color:#800">t</span>)
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#666">,@</span>(<span style="color:#008000">unless</span> <span style="color:#19177c">my/is-termux</span> <span style="color:#666">'</span>((<span style="color:#19177c">jupyter</span> <span style="color:#666">.</span> <span style="color:#800">t</span>)))
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">sparql</span> <span style="color:#666">.</span> <span style="color:#800">t</span>)))
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">sparql</span> <span style="color:#666">.</span> <span style="color:#800">t</span>)
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">gnuplot</span> <span style="color:#666">.</span> <span style="color:#800">t</span>)))
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">add-hook</span> <span style="color:#19177c">'org-babel-after-execute-hook</span> <span style="color:#19177c">'org-redisplay-inline-images</span>))
|
||||
</span></span></code></pre></div><p>Use Jupyter block instead of built-in Python.</p>
|
||||
|
|
@ -5303,11 +5358,11 @@ Didn’t work out as I expected, so I’ve made <code>org-journal-tags</
|
|||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">my-leader-def</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:infix</span> <span style="color:#ba2121">"or"</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">""</span> <span style="color:#666">'</span>(<span style="color:#008000">:which-key</span> <span style="color:#ba2121">"org-roam"</span>)
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"i"</span> <span style="color:#19177c">'org-roam-node-insert</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"r"</span> <span style="color:#19177c">'org-roam-node-find</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"g"</span> <span style="color:#19177c">'org-roam-graph</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"c"</span> <span style="color:#19177c">'org-roam-capture</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"b"</span> <span style="color:#19177c">'org-roam-buffer-toggle</span>)
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"i"</span> <span style="color:#00f">#'</span><span style="color:#19177c">org-roam-node-insert</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"r"</span> <span style="color:#00f">#'</span><span style="color:#19177c">org-roam-node-find</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"g"</span> <span style="color:#00f">#'</span><span style="color:#19177c">org-roam-graph</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"c"</span> <span style="color:#00f">#'</span><span style="color:#19177c">org-roam-capture</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"b"</span> <span style="color:#00f">#'</span><span style="color:#19177c">org-roam-buffer-toggle</span>)
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">general-define-key</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:keymaps</span> <span style="color:#19177c">'org-roam-mode-map</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:states</span> <span style="color:#666">'</span>(<span style="color:#19177c">normal</span>)
|
||||
|
|
@ -5322,9 +5377,10 @@ Didn’t work out as I expected, so I’ve made <code>org-journal-tags</
|
|||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">my-leader-def</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:keymap</span> <span style="color:#19177c">'org-mode-map</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:infix</span> <span style="color:#ba2121">"or"</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"t"</span> <span style="color:#19177c">'org-roam-tag-add</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"T"</span> <span style="color:#19177c">'org-roam-tag-remove</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"s"</span> <span style="color:#19177c">'org-roam-db-autosync-mode</span>)
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"t"</span> <span style="color:#00f">#'</span><span style="color:#19177c">org-roam-tag-add</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"T"</span> <span style="color:#00f">#'</span><span style="color:#19177c">org-roam-tag-remove</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"s"</span> <span style="color:#00f">#'</span><span style="color:#19177c">org-roam-db-autosync-mode</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"a"</span> <span style="color:#00f">#'</span><span style="color:#19177c">org-roam-alias-add</span>)
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">general-define-key</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:keymap</span> <span style="color:#19177c">'org-mode-map</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"C-c i"</span> <span style="color:#19177c">'org-roam-node-insert</span>))
|
||||
|
|
@ -6600,8 +6656,7 @@ Some other optimization settings:</p>
|
|||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">general-define-key</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:states</span> <span style="color:#666">'</span>(<span style="color:#19177c">normal</span> <span style="color:#00f">insert</span>)
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:keymaps</span> <span style="color:#19177c">'eshell-mode-map</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"<home>"</span> <span style="color:#00f">#'</span><span style="color:#19177c">eshell-bol</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"C-r"</span> <span style="color:#00f">#'</span><span style="color:#19177c">counsel-esh-history</span>)
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"<home>"</span> <span style="color:#00f">#'</span><span style="color:#19177c">eshell-bol</span>)
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">general-define-key</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:keymaps</span> <span style="color:#19177c">'eshell-mode-map</span>
|
||||
|
|
@ -6846,6 +6901,19 @@ Some other optimization settings:</p>
|
|||
</span></span><span style="display:flex;"><span> (<span style="color:#00f">insert</span> (<span style="color:#00f">overlay-get</span> <span style="color:#19177c">overlay</span> <span style="color:#19177c">'after-string</span>)))
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">company-complete</span>))
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">company-complete</span>)))
|
||||
</span></span></code></pre></div><h5 id="atuin-integration">Atuin integration</h5>
|
||||
<p><a href="https://github.com/SqrtMinusOne/eshell-atuin">eshell-atuin</a> is my package that integrates eshell with <a href="https://github.com/atuinsh/atuin">atuin</a>.</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">use-package</span> <span style="color:#19177c">eshell-atuin</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:straight</span> (<span style="color:#008000">:host</span> <span style="color:#19177c">github</span> <span style="color:#008000">:repo</span> <span style="color:#ba2121">"SqrtMinusOne/eshell-atuin"</span>)
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:after</span> <span style="color:#19177c">eshell</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:config</span>
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">eshell-atuin-mode</span>)
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#008000">setq</span> <span style="color:#19177c">eshell-atuin-search-fields</span> <span style="color:#666">'</span>(<span style="color:#19177c">time</span> <span style="color:#19177c">duration</span> <span style="color:#19177c">command</span>))
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#008000">setq</span> <span style="color:#19177c">eshell-atuin-history-format</span> <span style="color:#ba2121">"%-160c %t + %d"</span>)
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">general-define-key</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:states</span> <span style="color:#666">'</span>(<span style="color:#19177c">normal</span> <span style="color:#00f">insert</span>)
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:keymaps</span> <span style="color:#19177c">'eshell-mode-map</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"C-r"</span> <span style="color:#00f">#'</span><span style="color:#19177c">eshell-atuin-history</span>))
|
||||
</span></span></code></pre></div><h5 id="dedicated-buffer">Dedicated buffer</h5>
|
||||
<p>Make a dedicated buffer for eshell in the bottom of the screen.</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#19177c">add-to-list</span> <span style="color:#19177c">'display-buffer-alist</span>
|
||||
|
|
@ -7588,7 +7656,7 @@ Some other optimization settings:</p>
|
|||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">buffer</span> (<span style="color:#19177c">generate-new-buffer</span> <span style="color:#ba2121">"whisper"</span>))
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">proc</span> (<span style="color:#00f">start-process</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"whisper"</span> <span style="color:#19177c">buffer</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"whisper-cpp"</span> <span style="color:#ba2121">"--model"</span> <span style="color:#ba2121">"/home/pavel/.whisper/ggml-tiny.en.bin"</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"whisper-cpp"</span> <span style="color:#ba2121">"--model"</span> <span style="color:#ba2121">"/home/pavel/.whisper/ggml-medium.en.bin"</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">"-otxt"</span> <span style="color:#ba2121">"-ovtt"</span> <span style="color:#ba2121">"-osrt"</span> <span style="color:#19177c">input</span>)))
|
||||
</span></span><span style="display:flex;"><span> (<span style="color:#00f">set-process-sentinel</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#19177c">proc</span>
|
||||
|
|
|
|||
|
|
@ -851,7 +851,7 @@ Also not necessary now. Just <code>herd stop vpn</code> and <code>sudo pkill vpn
|
|||
<li><a href="#openvpn">OpenVPN</a>
|
||||
<ul>
|
||||
<li><a href="#vpn-start">vpn-start</a></li>
|
||||
<li><a href="#377cab">vpn-stop</a></li>
|
||||
<li><a href="#377cab"><del>vpn-stop</del></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#wireguard">Wireguard</a></li>
|
||||
|
|
|
|||
|
|
@ -118,19 +118,7 @@
|
|||
<ul>
|
||||
<li><a href="https://github.com/SqrtMinusOne/channel-q">channel-q</a> is my Guix channel</li>
|
||||
<li><a href="https://github.com/SqrtMinusOne/sqrt-data">sqrt-data</a> is a home for my statistics gathering effort</li>
|
||||
<li>Emacs packages that I wrote (some of them originated in my Emacs config):
|
||||
<ul>
|
||||
<li><a href="https://github.com/SqrtMinusOne/lyrics-fetcher.el">lyrics-fetcher.el</a></li>
|
||||
<li><a href="https://github.com/SqrtMinusOne/pomm.el">pomm.el</a></li>
|
||||
<li><a href="https://github.com/SqrtMinusOne/perspective-exwm.el">perspective-exwm.el</a></li>
|
||||
<li><a href="https://github.com/SqrtMinusOne/exwm-modeline">exwm-modeline.el</a></li>
|
||||
<li><a href="https://github.com/SqrtMinusOne/org-journal-tags">org-journal-tags</a></li>
|
||||
<li><a href="https://github.com/SqrtMinusOne/elfeed-summary">elfeed-summary</a></li>
|
||||
<li><a href="https://github.com/SqrtMinusOne/password-store-ivy">password-store-ivy</a></li>
|
||||
<li><a href="https://github.com/SqrtMinusOne/elfeed-sync">elfeed-sync</a></li>
|
||||
<li><a href="https://github.com/SqrtMinusOne?tab=repositories&q=&type=&language=emacs+lisp&sort=">…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="https://sqrtminusone.xyz/emacs-packages/">My Emacs Packages</a>, some of which originated in my Emacs config</li>
|
||||
</ul>
|
||||
<p>See also <a href="https://sqrtminusone.xyz/posts/">my blog posts</a>.</p>
|
||||
<h2 id="some-statistics">Some statistics</h2>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=""><head>
|
||||
<meta name="generator" content="Hugo 0.123.2">
|
||||
<meta name="generator" content="Hugo 0.123.8">
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
|
|
|
|||
21
index.xml
21
index.xml
|
|
@ -1789,7 +1789,10 @@ I&rsquo;ve seen a couple of cases where people would swap their username and
|
|||
|
||||
<guid>https://sqrtminusone.xyz/packages/reverso/</guid>
|
||||
<content type="html">
|
||||
<p>Emacs client for <a href="https://www.reverso.net/">Reverso</a>. The implemented features are:</p>
|
||||
<figure><a href="https://melpa.org/#/reverso"><img src="https://melpa.org/packages/reverso-badge.svg"/></a>
|
||||
</figure>
|
||||
|
||||
<p>Emacs client for <a href="https://www.reverso.net/">Reverso</a>. The implemented features are:</p>
|
||||
<ul>
|
||||
<li><a href="https://www.reverso.net/text-translation">Translation</a></li>
|
||||
<li><a href="https://context.reverso.net/translation/">Context</a> (AKA bilingual concordances)</li>
|
||||
|
|
@ -1798,9 +1801,9 @@ I&rsquo;ve seen a couple of cases where people would swap their username and
|
|||
<li><a href="https://conjugator.reverso.net/conjugation-english.html">Conjugation</a></li>
|
||||
</ul>
|
||||
<h2 id="installation">Installation</h2>
|
||||
<p>The package isn&rsquo;t yet available anywhere but in this repository. My preferred way for such cases is <a href="https://github.com/jwiegley/use-package">use-package</a> and <a href="https://github.com/radian-software/straight.el">straight.el</a>:</p>
|
||||
<p>The package is available on MELPA. Install it however you normally install packages, e.g. with <a href="https://github.com/jwiegley/use-package">use-package</a> and <a href="https://github.com/radian-software/straight.el">straight.el</a>:</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">use-package</span> <span style="color:#19177c">reverso</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:straight</span> (<span style="color:#008000">:host</span> <span style="color:#19177c">github</span> <span style="color:#008000">:repo</span> <span style="color:#ba2121">&#34;SqrtMinusOne/reverso.el&#34;</span>))
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:straight</span> <span style="color:#800">t</span>)
|
||||
</span></span></code></pre></div><p>Or <a href="https://tony-zorman.com/posts/use-package-vc.html">use-package with vc</a>, which works on Emacs 30 out-of-the-box.</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">use-package</span> <span style="color:#19177c">reverso</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:vc</span> (<span style="color:#008000">:url</span> <span style="color:#ba2121">&#34;https://github.com/SqrtMinusOne/reverso.el.git&#34;</span>))
|
||||
|
|
@ -1891,13 +1894,13 @@ I&rsquo;ve seen a couple of cases where people would swap their username and
|
|||
<p>Enable <code>reverso-history-mode</code> to keep history:</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#19177c">reverso-history-mode</span>)
|
||||
</span></span></code></pre></div><p>I haven&rsquo;t implemented persistence yet, but I might in the future.</p>
|
||||
<p>After enabling the minor mode, <code>M-x reverso-history</code> or <code>M-x reverso h</code> will display recent commans. <code>RET</code> on shows the results of each command.</p>
|
||||
<p>After enabling the minor mode, <code>M-x reverso-history</code> or <code>M-x reverso h</code> will display recent commands. <code>RET</code> on shows the results of each command.</p>
|
||||
<h2 id="caveats">Caveats</h2>
|
||||
<p>Before proceeding further, here are some general caveats to be aware of.</p>
|
||||
<p>Firstly, the package uses a reverse-engineered API, so all the typical consequences apply, such as sudden irreparable breakages. Although I&rsquo;ve been using it for over a year, so&hellip; maybe not.</p>
|
||||
<p>Secondly, the limit on input size has been mentioned. The obvious is executing commands on a smaller region.</p>
|
||||
<p>Thirdly, there have been reports that Reverso dispatches <strong>IP bans</strong> to particularly enthusiastic users, so be cautious if you&rsquo;re sending lots of automated queries. This is also why I didn&rsquo;t implement running one command for multiple consecutive regions.</p>
|
||||
<p>Lastly, exercise caution with the content sent to the service. Avoid inadvertently sharing confidential information (like passwords) or anything that could be used against you in other ways. While the service claims to be <a href="https://www.reverso.net/privacy.aspx?lang=EN">GDPR-compliant</a>, we can&rsquo;t actually check that.</p>
|
||||
<p>Before proceeding further, here are some caveats to be aware of.</p>
|
||||
<p>First, the package uses a reverse-engineered API, so all the typical consequences apply, such as sudden irreparable breakages. Although I&rsquo;ve been using it for over a year, so&hellip; maybe not.</p>
|
||||
<p>Second, the limit on input size has been mentioned. The obvious workaround is executing commands on a smaller region.</p>
|
||||
<p>Third, there have been reports that Reverso dispatches <strong>IP bans</strong> to particularly enthusiastic users, so be cautious if you&rsquo;re sending lots of automated queries. This is also why I didn&rsquo;t implement running one command for multiple consecutive regions.</p>
|
||||
<p>Finally, exercise caution with the content sent to the service. Avoid inadvertently sharing confidential information (like passwords) or anything that could be used against you in other ways. While the service claims to be <a href="https://www.reverso.net/privacy.aspx?lang=EN">GDPR-compliant</a>, we can&rsquo;t actually check that.</p>
|
||||
<h2 id="customization">Customization</h2>
|
||||
<p>Run <code>M-x customize-group reverso</code> to view the available parameters. Here are a few.</p>
|
||||
<p>If you don&rsquo;t need all 17 languages, customize the <code>reverso-languages</code> variable to narrow down the list:</p>
|
||||
|
|
|
|||
|
|
@ -384,7 +384,10 @@ Customize the formatting of these records through <code>org-clock-agg-elem
|
|||
|
||||
<guid>https://sqrtminusone.xyz/packages/reverso/</guid>
|
||||
<content type="html">
|
||||
<p>Emacs client for <a href="https://www.reverso.net/">Reverso</a>. The implemented features are:</p>
|
||||
<figure><a href="https://melpa.org/#/reverso"><img src="https://melpa.org/packages/reverso-badge.svg"/></a>
|
||||
</figure>
|
||||
|
||||
<p>Emacs client for <a href="https://www.reverso.net/">Reverso</a>. The implemented features are:</p>
|
||||
<ul>
|
||||
<li><a href="https://www.reverso.net/text-translation">Translation</a></li>
|
||||
<li><a href="https://context.reverso.net/translation/">Context</a> (AKA bilingual concordances)</li>
|
||||
|
|
@ -393,9 +396,9 @@ Customize the formatting of these records through <code>org-clock-agg-elem
|
|||
<li><a href="https://conjugator.reverso.net/conjugation-english.html">Conjugation</a></li>
|
||||
</ul>
|
||||
<h2 id="installation">Installation</h2>
|
||||
<p>The package isn&rsquo;t yet available anywhere but in this repository. My preferred way for such cases is <a href="https://github.com/jwiegley/use-package">use-package</a> and <a href="https://github.com/radian-software/straight.el">straight.el</a>:</p>
|
||||
<p>The package is available on MELPA. Install it however you normally install packages, e.g. with <a href="https://github.com/jwiegley/use-package">use-package</a> and <a href="https://github.com/radian-software/straight.el">straight.el</a>:</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">use-package</span> <span style="color:#19177c">reverso</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:straight</span> (<span style="color:#008000">:host</span> <span style="color:#19177c">github</span> <span style="color:#008000">:repo</span> <span style="color:#ba2121">&#34;SqrtMinusOne/reverso.el&#34;</span>))
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:straight</span> <span style="color:#800">t</span>)
|
||||
</span></span></code></pre></div><p>Or <a href="https://tony-zorman.com/posts/use-package-vc.html">use-package with vc</a>, which works on Emacs 30 out-of-the-box.</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">use-package</span> <span style="color:#19177c">reverso</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:vc</span> (<span style="color:#008000">:url</span> <span style="color:#ba2121">&#34;https://github.com/SqrtMinusOne/reverso.el.git&#34;</span>))
|
||||
|
|
@ -486,13 +489,13 @@ Customize the formatting of these records through <code>org-clock-agg-elem
|
|||
<p>Enable <code>reverso-history-mode</code> to keep history:</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#19177c">reverso-history-mode</span>)
|
||||
</span></span></code></pre></div><p>I haven&rsquo;t implemented persistence yet, but I might in the future.</p>
|
||||
<p>After enabling the minor mode, <code>M-x reverso-history</code> or <code>M-x reverso h</code> will display recent commans. <code>RET</code> on shows the results of each command.</p>
|
||||
<p>After enabling the minor mode, <code>M-x reverso-history</code> or <code>M-x reverso h</code> will display recent commands. <code>RET</code> on shows the results of each command.</p>
|
||||
<h2 id="caveats">Caveats</h2>
|
||||
<p>Before proceeding further, here are some general caveats to be aware of.</p>
|
||||
<p>Firstly, the package uses a reverse-engineered API, so all the typical consequences apply, such as sudden irreparable breakages. Although I&rsquo;ve been using it for over a year, so&hellip; maybe not.</p>
|
||||
<p>Secondly, the limit on input size has been mentioned. The obvious is executing commands on a smaller region.</p>
|
||||
<p>Thirdly, there have been reports that Reverso dispatches <strong>IP bans</strong> to particularly enthusiastic users, so be cautious if you&rsquo;re sending lots of automated queries. This is also why I didn&rsquo;t implement running one command for multiple consecutive regions.</p>
|
||||
<p>Lastly, exercise caution with the content sent to the service. Avoid inadvertently sharing confidential information (like passwords) or anything that could be used against you in other ways. While the service claims to be <a href="https://www.reverso.net/privacy.aspx?lang=EN">GDPR-compliant</a>, we can&rsquo;t actually check that.</p>
|
||||
<p>Before proceeding further, here are some caveats to be aware of.</p>
|
||||
<p>First, the package uses a reverse-engineered API, so all the typical consequences apply, such as sudden irreparable breakages. Although I&rsquo;ve been using it for over a year, so&hellip; maybe not.</p>
|
||||
<p>Second, the limit on input size has been mentioned. The obvious workaround is executing commands on a smaller region.</p>
|
||||
<p>Third, there have been reports that Reverso dispatches <strong>IP bans</strong> to particularly enthusiastic users, so be cautious if you&rsquo;re sending lots of automated queries. This is also why I didn&rsquo;t implement running one command for multiple consecutive regions.</p>
|
||||
<p>Finally, exercise caution with the content sent to the service. Avoid inadvertently sharing confidential information (like passwords) or anything that could be used against you in other ways. While the service claims to be <a href="https://www.reverso.net/privacy.aspx?lang=EN">GDPR-compliant</a>, we can&rsquo;t actually check that.</p>
|
||||
<h2 id="customization">Customization</h2>
|
||||
<p>Run <code>M-x customize-group reverso</code> to view the available parameters. Here are a few.</p>
|
||||
<p>If you don&rsquo;t need all 17 languages, customize the <code>reverso-languages</code> variable to narrow down the list:</p>
|
||||
|
|
|
|||
|
|
@ -83,7 +83,10 @@
|
|||
<iframe src="https://ghbtns.com/github-btn.html?user=SqrtMinusOne&repo=reverso.el&type=star&count=true" frameborder="0" scrolling="0" width="150" height="20" title="GitHub"></iframe>
|
||||
|
||||
</h1>
|
||||
<p>Emacs client for <a href="https://www.reverso.net/">Reverso</a>. The implemented features are:</p>
|
||||
<figure><a href="https://melpa.org/#/reverso"><img src="https://melpa.org/packages/reverso-badge.svg"/></a>
|
||||
</figure>
|
||||
|
||||
<p>Emacs client for <a href="https://www.reverso.net/">Reverso</a>. The implemented features are:</p>
|
||||
<ul>
|
||||
<li><a href="https://www.reverso.net/text-translation">Translation</a></li>
|
||||
<li><a href="https://context.reverso.net/translation/">Context</a> (AKA bilingual concordances)</li>
|
||||
|
|
@ -92,9 +95,9 @@
|
|||
<li><a href="https://conjugator.reverso.net/conjugation-english.html">Conjugation</a></li>
|
||||
</ul>
|
||||
<h2 id="installation">Installation</h2>
|
||||
<p>The package isn’t yet available anywhere but in this repository. My preferred way for such cases is <a href="https://github.com/jwiegley/use-package">use-package</a> and <a href="https://github.com/radian-software/straight.el">straight.el</a>:</p>
|
||||
<p>The package is available on MELPA. Install it however you normally install packages, e.g. with <a href="https://github.com/jwiegley/use-package">use-package</a> and <a href="https://github.com/radian-software/straight.el">straight.el</a>:</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">use-package</span> <span style="color:#19177c">reverso</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:straight</span> (<span style="color:#008000">:host</span> <span style="color:#19177c">github</span> <span style="color:#008000">:repo</span> <span style="color:#ba2121">"SqrtMinusOne/reverso.el"</span>))
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:straight</span> <span style="color:#800">t</span>)
|
||||
</span></span></code></pre></div><p>Or <a href="https://tony-zorman.com/posts/use-package-vc.html">use-package with vc</a>, which works on Emacs 30 out-of-the-box.</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">use-package</span> <span style="color:#19177c">reverso</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#008000">:vc</span> (<span style="color:#008000">:url</span> <span style="color:#ba2121">"https://github.com/SqrtMinusOne/reverso.el.git"</span>))
|
||||
|
|
@ -185,13 +188,13 @@
|
|||
<p>Enable <code>reverso-history-mode</code> to keep history:</p>
|
||||
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#19177c">reverso-history-mode</span>)
|
||||
</span></span></code></pre></div><p>I haven’t implemented persistence yet, but I might in the future.</p>
|
||||
<p>After enabling the minor mode, <code>M-x reverso-history</code> or <code>M-x reverso h</code> will display recent commans. <code>RET</code> on shows the results of each command.</p>
|
||||
<p>After enabling the minor mode, <code>M-x reverso-history</code> or <code>M-x reverso h</code> will display recent commands. <code>RET</code> on shows the results of each command.</p>
|
||||
<h2 id="caveats">Caveats</h2>
|
||||
<p>Before proceeding further, here are some general caveats to be aware of.</p>
|
||||
<p>Firstly, the package uses a reverse-engineered API, so all the typical consequences apply, such as sudden irreparable breakages. Although I’ve been using it for over a year, so… maybe not.</p>
|
||||
<p>Secondly, the limit on input size has been mentioned. The obvious is executing commands on a smaller region.</p>
|
||||
<p>Thirdly, there have been reports that Reverso dispatches <strong>IP bans</strong> to particularly enthusiastic users, so be cautious if you’re sending lots of automated queries. This is also why I didn’t implement running one command for multiple consecutive regions.</p>
|
||||
<p>Lastly, exercise caution with the content sent to the service. Avoid inadvertently sharing confidential information (like passwords) or anything that could be used against you in other ways. While the service claims to be <a href="https://www.reverso.net/privacy.aspx?lang=EN">GDPR-compliant</a>, we can’t actually check that.</p>
|
||||
<p>Before proceeding further, here are some caveats to be aware of.</p>
|
||||
<p>First, the package uses a reverse-engineered API, so all the typical consequences apply, such as sudden irreparable breakages. Although I’ve been using it for over a year, so… maybe not.</p>
|
||||
<p>Second, the limit on input size has been mentioned. The obvious workaround is executing commands on a smaller region.</p>
|
||||
<p>Third, there have been reports that Reverso dispatches <strong>IP bans</strong> to particularly enthusiastic users, so be cautious if you’re sending lots of automated queries. This is also why I didn’t implement running one command for multiple consecutive regions.</p>
|
||||
<p>Finally, exercise caution with the content sent to the service. Avoid inadvertently sharing confidential information (like passwords) or anything that could be used against you in other ways. While the service claims to be <a href="https://www.reverso.net/privacy.aspx?lang=EN">GDPR-compliant</a>, we can’t actually check that.</p>
|
||||
<h2 id="customization">Customization</h2>
|
||||
<p>Run <code>M-x customize-group reverso</code> to view the available parameters. Here are a few.</p>
|
||||
<p>If you don’t need all 17 languages, customize the <code>reverso-languages</code> variable to narrow down the list:</p>
|
||||
|
|
|
|||
BIN
stats/all.png
BIN
stats/all.png
Binary file not shown.
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 120 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 61 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
Loading…
Add table
Reference in a new issue