Emacs: Difference between revisions

imported>Hertz
m Fix spelling mistake.
imported>Aaronchall
m reflow whitespace, was going outside of viewable area
Line 139: Line 139:
  environment.systemPackages = with pkgs;
  environment.systemPackages = with pkgs;
   [ ...
   [ ...
     ((emacsPackagesFor emacsPgtkNativeComp).emacsWithPackages (epkgs: [ epkgs.vterm ]))
     ((emacsPackagesFor emacsPgtkNativeComp).emacsWithPackages (
      epkgs: [ epkgs.vterm ]
    ))
     ...
     ...
   ];
   ];


To make the packages available to {{ic|emacsclient}}, one can do the following:
To make the packages available to {{ic|emacsclient}}, one can do the following:
  services.emacs.package = with pkgs; ((emacsPackagesFor emacsPgtkNativeComp).emacsWithPackages (epkgs: [ epkgs.vterm ]));
  services.emacs.package = with pkgs; (
  (emacsPackagesFor emacsPgtkNativeComp).emacsWithPackages (
    epkgs: [ epkgs.vterm ]
  )
);


Note that some packages may have strange characters like <code>+</code> that would be considered as a syntax error by nix. To avoid that, make sure to write it in quotes and to prepend it with the package set that you want l (even if you used <code>with epkgs; …</code>) like <code>epkgs."ido-completing-read+"</code>.
Note that some packages may have strange characters like <code>+</code> that would be considered as a syntax error by nix. To avoid that, make sure to write it in quotes and to prepend it with the package set that you want l (even if you used <code>with epkgs; …</code>) like <code>epkgs."ido-completing-read+"</code>.