Emacs: Difference between revisions
remove empty links, redundent links, and improper formatting |
No edit summary |
||
Line 23: | Line 23: | ||
To temporarily use Emacs in a shell environment without modifying your system configuration, you can run: | To temporarily use Emacs in a shell environment without modifying your system configuration, you can run: | ||
< | {{Commands| | ||
<nowiki> | |||
$ nix-shell -p emacs | $ nix-shell -p emacs | ||
</ | </nowiki> | ||
}} | |||
This makes the Emacs editor available in your current shell. You can then launch Emacs by typing <code>emacs</code>. | This makes the Emacs editor available in your current shell. You can then launch Emacs by typing <code>emacs</code>. | ||
Line 250: | Line 252: | ||
</nowiki>}} | </nowiki>}} | ||
They are located at <code>pkgs/applications/editors/emacs/elisp-packages/manual-packages/</code> [https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/editors/emacs/elisp-packages/manual-packages] and a new pkg must be added under <code>pkgs/applications/editors/elisp-packages/manual-packages.nix</code> [https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/emacs/elisp-packages/manual-packages.nix]. Once the nixpkg is ready, it can be tested using the following command. This inserts the nixpkg into the load-path of Emacs.< | They are located at <code>pkgs/applications/editors/emacs/elisp-packages/manual-packages/</code> [https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/editors/emacs/elisp-packages/manual-packages] and a new pkg must be added under <code>pkgs/applications/editors/elisp-packages/manual-packages.nix</code> [https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/emacs/elisp-packages/manual-packages.nix]. Once the nixpkg is ready, it can be tested using the following command. This inserts the nixpkg into the load-path of Emacs. | ||
{{Commands| | |||
<nowiki> | |||
$ nix-shell -I nixpkgs=<path_to_nixpkgs_copy> -p "(emacsPackagesFor pkgs.emacs28).emacsWithPackages (epkgs: [ epkgs.<package> ])" | $ nix-shell -I nixpkgs=<path_to_nixpkgs_copy> -p "(emacsPackagesFor pkgs.emacs28).emacsWithPackages (epkgs: [ epkgs.<package> ])" | ||
</ | </nowiki> | ||
}} | |||
==== Window Manager Integration ==== | ==== Window Manager Integration ==== |