home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit bb731773450d0c0a5f8cda19bd6d1a2f2cec7b16
parent 12e5578cb427b4a71476994e1b10e21fe273ec2b
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Sun, 25 Nov 2018 12:42:04 +0100

emacs: remove emacs org sevice 👅

… use only one server

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mmodules/profiles/assets/xorg/org-protocol.desktop | 2+-
Mmodules/profiles/emacs.nix | 17-----------------
Dpkgs/scripts/bin/eco | 2--
Dpkgs/scripts/bin/eto | 2--
4 files changed, 1 insertion(+), 22 deletions(-)

diff --git a/modules/profiles/assets/xorg/org-protocol.desktop b/modules/profiles/assets/xorg/org-protocol.desktop @@ -1,6 +1,6 @@ [Desktop Entry] Name=org-protocol -Exec=eco -n %u +Exec=ec -n %u Type=Application Terminal=false Categories=System; diff --git a/modules/profiles/emacs.nix b/modules/profiles/emacs.nix @@ -34,23 +34,6 @@ in WantedBy = [ "default.target" ]; }; }; - systemd.user.services.emacs-org = { - Unit = { - Description = "Emacs: the extensible, self-documenting text editor"; - }; - Service = { - Environment = '' - PATH=/home/vincent/bin:/home/vincent/.local/npm/bin:/run/wrappers/bin:/etc/profiles/per-user/vincent/bin:${config.home.profileDirectory}/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin GOPATH=/home/vincent ASPELL_CONF=dict-dir=/home/vincent/.nix-profile/lib/aspell - ''; - Type = "forking"; - ExecStart = "${pkgs.bash}/bin/bash -c 'source /etc/profile; exec /home/vincent/.nix-profile/bin/emacs --daemon=org'"; - ExecStop = "/home/vincent/.nix-profile/bin/emacsclient --socket-name=org --eval (kill-emacs)"; - Restart = "always"; - }; - Install = { - WantedBy = [ "default.target" ]; - }; - }; programs.emacs = { enable = true; # package = pkgs.myEmacs; diff --git a/pkgs/scripts/bin/eco b/pkgs/scripts/bin/eco @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -emacsclient --socket-name=org --create-frame $@ diff --git a/pkgs/scripts/bin/eto b/pkgs/scripts/bin/eto @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -emacsclient --socket-name=org --tty $@