+4
-4
nixos/modules/services/editors/emacs.xml
+4
-4
nixos/modules/services/editors/emacs.xml
···
274
274
<para>
275
275
The list of available packages in the various ELPA
276
276
repositories can be seen with the following commands:
277
-
<example>
277
+
<example xml:id="module-services-emacs-querying-packages">
278
278
<title>Querying Emacs packages</title>
279
279
<programlisting><![CDATA[
280
280
nix-env -f "<nixpkgs>" -qaP -A emacsPackagesNg.elpaPackages
···
291
291
(see <xref linkend="sec-declarative-package-mgmt" />). Simply
292
292
modify your file <filename>configuration.nix</filename> to
293
293
make it contain:
294
-
<example>
294
+
<example xml:id="module-services-emacs-configuration-nix">
295
295
<title>Custom Emacs in <filename>configuration.nix</filename></title>
296
296
<programlisting><![CDATA[
297
297
{
···
319
319
Emacs only for yourself, you can do so by adding it to your
320
320
<filename>~/.config/nixpkgs/config.nix</filename>
321
321
(see <link xlink:href="http://nixos.org/nixpkgs/manual/#sec-modify-via-packageOverrides">Nixpkgs manual</link>):
322
-
<example>
322
+
<example xml:id="module-services-emacs-config-nix">
323
323
<title>Custom Emacs in <filename>~/.config/nixpkgs/config.nix</filename></title>
324
324
<programlisting><![CDATA[
325
325
{
···
522
522
The Emacs init file should be changed to load the extension
523
523
packages at startup:
524
524
525
-
<example>
525
+
<example xml:id="module-services-emacs-package-initialisation">
526
526
<title>Package initialization in <filename>.emacs</filename></title>
527
527
<programlisting><![CDATA[
528
528
(require 'package)