Set VISUAL as well as EDITOR variables
Resolve Emacs in VISUAL and EDITOR
This commit is contained in:
parent
899bd4e082
commit
b19858e6bb
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
@ -10,7 +11,10 @@
|
||||||
../texlive/default.nix
|
../texlive/default.nix
|
||||||
../programming/default.nix
|
../programming/default.nix
|
||||||
];
|
];
|
||||||
home.sessionVariables.EDITOR = "emacs";
|
home.sessionVariables = with config.programs; {
|
||||||
|
EDITOR = "${emacs.finalPackage}/bin/emacs -nw";
|
||||||
|
VISUAL = "${emacs.finalPackage}/bin/emacs";
|
||||||
|
};
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.emacs30.override {
|
package = pkgs.emacs30.override {
|
||||||
|
|
Loading…
Reference in a new issue