aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2016-07-04 12:12:15 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2016-07-04 12:12:15 +0200
commitdee5d71426ea9982996e84d0015264f9830815c6 (patch)
tree89d29ea4a0802a34a4b785f27b4e2e0e0a2cf207
parent1bfa4d62a0bb39166d5883883e4e9fd7282add71 (diff)
downloaddotfiles-dee5d71426ea9982996e84d0015264f9830815c6.tar.gz
dotfiles-dee5d71426ea9982996e84d0015264f9830815c6.zip
i3: the emacs+systemd setup is buggy
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
-rw-r--r--README.md12
-rw-r--r--i3/config2
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,