From dee5d71426ea9982996e84d0015264f9830815c6 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 4 Jul 2016 12:12:15 +0200 Subject: i3: the emacs+systemd setup is buggy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- README.md | 12 +++++++----- i3/config | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f0614e3..27e3c00 100644 --- a/README.md +++ b/README.md @@ -18,11 +18,13 @@ future). These are the files: - `emacs/init.el` and `emacs/gtkrc`: should be symlinked into `~/.emacs.d`. - `emacs/emacs.service`: should be symlinked into `~/.config/systemd/user`. -Note that `emacs/emacs.service` should be used with the `--user` flag. For -example: - - $ systemctl start --user emacs - $ systemctl enable --user emacs +Note that `emacs/emacs.service` should be used with the `--user` flag and it's +used to get Emacs to work in **daemon mode** using systemd. This does **not** +work properly for now (e.g. the user's `PATH` is not loaded). For this, in the +`i3/config` file you'll see that I'm using `-a ""` as an argument of +`emacsclient`. This instructs `emacsclient` to spawn a new server if there +isn't one already. This means that the first time around it will take some +time, but in the next time everything will be alright. Last but not least, I'm using my customized `soria` color theme. This theme is unfortunately not available in any way other than Github. Therefore, you should diff --git a/i3/config b/i3/config index 4df89c2..6f1c0ec 100644 --- a/i3/config +++ b/i3/config @@ -165,7 +165,7 @@ bindsym Print exec scrot -u bindsym $mod+F1 exec ~/bin/toggle-keyboard-layout.sh # Emacs -bindsym $mod+m exec emacsclient -c +bindsym $mod+m exec emacsclient -c -a "" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available). This setup has DP-1 as the monitor on the right, -- cgit v1.2.3