Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

programs.emacs.enable

Whether to enable Emacs.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.emacs.package

The emacs package to use.

Type: package

Default:

pkgs.emacs

Example:

pkgs.emacs25-nox

Declared by:

programs.emacs.extraConfig

Configuration to include in the Emacs default init file. See https://www.gnu.org/software/emacs/manual/html_node/elisp/Init-File.html for more.

Note, the inhibit-startup-message Emacs option cannot be set here since Emacs disallows setting it from the default initialization file.

Type: strings concatenated with ā€œ\nā€

Default:

""

Example:

''
  (setq standard-indent 2)
''

Declared by:

programs.emacs.extraPackages

Extra packages available to Emacs. To get a list of available packages run: nix-env -f '<nixpkgs>' -qaP -A emacsPackages.

Type: Function that takes an attribute set and returns a list containing a selection of the values of the input set

Default:

"epkgs: []"

Example:

epkgs: [ epkgs.emms epkgs.magit ]

Declared by:

programs.emacs.overrides

Allows overriding packages within the Emacs package set.

Type: An overlay function, takes self and super and returns an attribute set overriding the desired attributes.

Default:

"self: super: {}"

Example:

self: super: rec {
  haskell-mode = self.melpaPackages.haskell-mode;
  # ...
};

Declared by: