nixos docs: more IDs

This commit is contained in:
Graham Christensen 2018-09-02 15:56:02 -04:00
parent a3872f66b7
commit 61deecdc34
No known key found for this signature in database
GPG Key ID: ACA1C1D120C83D5C

View File

@ -274,7 +274,7 @@ $ ./result/bin/emacs -q
<para> <para>
The list of available packages in the various ELPA The list of available packages in the various ELPA
repositories can be seen with the following commands: repositories can be seen with the following commands:
<example> <example xml:id="module-services-emacs-querying-packages">
<title>Querying Emacs packages</title> <title>Querying Emacs packages</title>
<programlisting><![CDATA[ <programlisting><![CDATA[
nix-env -f "<nixpkgs>" -qaP -A emacsPackagesNg.elpaPackages nix-env -f "<nixpkgs>" -qaP -A emacsPackagesNg.elpaPackages
@ -291,7 +291,7 @@ nix-env -f "<nixpkgs>" -qaP -A emacsPackagesNg.orgPackages
(see <xref linkend="sec-declarative-package-mgmt" />). Simply (see <xref linkend="sec-declarative-package-mgmt" />). Simply
modify your file <filename>configuration.nix</filename> to modify your file <filename>configuration.nix</filename> to
make it contain: make it contain:
<example> <example xml:id="module-services-emacs-configuration-nix">
<title>Custom Emacs in <filename>configuration.nix</filename></title> <title>Custom Emacs in <filename>configuration.nix</filename></title>
<programlisting><![CDATA[ <programlisting><![CDATA[
{ {
@ -319,7 +319,7 @@ https://nixos.org/nixpkgs/manual/#sec-modify-via-packageOverrides
Emacs only for yourself, you can do so by adding it to your Emacs only for yourself, you can do so by adding it to your
<filename>~/.config/nixpkgs/config.nix</filename> <filename>~/.config/nixpkgs/config.nix</filename>
(see <link xlink:href="http://nixos.org/nixpkgs/manual/#sec-modify-via-packageOverrides">Nixpkgs manual</link>): (see <link xlink:href="http://nixos.org/nixpkgs/manual/#sec-modify-via-packageOverrides">Nixpkgs manual</link>):
<example> <example xml:id="module-services-emacs-config-nix">
<title>Custom Emacs in <filename>~/.config/nixpkgs/config.nix</filename></title> <title>Custom Emacs in <filename>~/.config/nixpkgs/config.nix</filename></title>
<programlisting><![CDATA[ <programlisting><![CDATA[
{ {
@ -522,7 +522,7 @@ emacsclient --create-frame --tty # opens a new frame on the current terminal
The Emacs init file should be changed to load the extension The Emacs init file should be changed to load the extension
packages at startup: packages at startup:
<example> <example xml:id="module-services-emacs-package-initialisation">
<title>Package initialization in <filename>.emacs</filename></title> <title>Package initialization in <filename>.emacs</filename></title>
<programlisting><![CDATA[ <programlisting><![CDATA[
(require 'package) (require 'package)