about summary refs log tree commit diff
path: root/nixos/modules/services/editors
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2023-01-04 00:45:35 +0100
committerpennae <github@quasiparticle.net>2023-01-10 10:31:52 +0100
commit0715ecf936a642ec6e019333114c8ff2d92360d0 (patch)
tree34a58a01ccfb0187719f0b6902e9b2d4de454e1c /nixos/modules/services/editors
parent6930425922a51d353b1a52ea1140ecc03528bca3 (diff)
downloadnixlib-0715ecf936a642ec6e019333114c8ff2d92360d0.tar
nixlib-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.gz
nixlib-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.bz2
nixlib-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.lz
nixlib-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.xz
nixlib-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.zst
nixlib-0715ecf936a642ec6e019333114c8ff2d92360d0.zip
nixos/manual: normalize <programlisting>
makes sure that program listing tags are separated from their contents
by exactly a newline character. this makes the markdown translation
easier to verify (since no new newlines need to be inserted), and
there's no rendering difference anyway.
Diffstat (limited to 'nixos/modules/services/editors')
-rw-r--r--nixos/modules/services/editors/emacs.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/nixos/modules/services/editors/emacs.xml b/nixos/modules/services/editors/emacs.xml
index dfadf27d41dc..176766fdf411 100644
--- a/nixos/modules/services/editors/emacs.xml
+++ b/nixos/modules/services/editors/emacs.xml
@@ -446,7 +446,9 @@ emacsclient --create-frame --tty  # opens a new frame on the current terminal
    <para>
     If you have formed certain bad habits when editing files, these can be
     corrected with a shell alias to the wrapper script:
-<programlisting>alias vi=$EDITOR</programlisting>
+    <programlisting>
+alias vi=$EDITOR
+</programlisting>
    </para>
   </section>
 
@@ -467,7 +469,9 @@ services.emacs.install = true;
    <para>
     To enable the <command>systemd</command> user service for just the
     currently logged in user, run:
-<programlisting>systemctl --user enable emacs</programlisting>
+    <programlisting>
+systemctl --user enable emacs
+</programlisting>
     This will add the symlink
     <filename>~/.config/systemd/user/emacs.service</filename>.
    </para>