summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-08-21 15:35:32 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-08-21 15:36:11 -0700
commit4493e63be0ac1a4573baf30e6b70ed6fb8c89aed (patch)
treecce44af458c7570e076d7aafe766ba2ad70ebdc1
parent1be4cb95e41a3fee1ab0ab6748d31cc847c5e3ac (diff)
downloaddotfiles-4493e63be0ac1a4573baf30e6b70ed6fb8c89aed.tar.gz
adapt for new DESKTOP_SESSION value
-rw-r--r--.emacs.d/init-spw.el4
-rwxr-xr-x.shenv2
2 files changed, 3 insertions, 3 deletions
diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el
index 78c53388..dc9c7304 100644
--- a/.emacs.d/init-spw.el
+++ b/.emacs.d/init-spw.el
@@ -161,7 +161,7 @@ add places the library might be available to `load-path'."
backup-by-copying-when-mismatch t
tramp-backup-directory-alist backup-directory-alist)
-(when (member (getenv "DESKTOP_SESSION") '("i3"))
+(when (member (getenv "DESKTOP_SESSION") '("xfce" "i3"))
(setq mouse-autoselect-window t
focus-follows-mouse t
desktop-restore-forces-onscreen nil)
@@ -1464,7 +1464,7 @@ Should be t when do not have a good way to handle having lots of
open frames, as I do have under i3 with its tabbed layout (which
I use by default)."
(or (not (memq (framep (selected-frame)) '(x)))
- (not (member (getenv "DESKTOP_SESSION") '("i3")))))
+ (not (member (getenv "DESKTOP_SESSION") '("xfce" "i3")))))
;; if we're going to be using multiple frames, make `frame-title-format' not
;; depend on whether there are multiple frames right now
diff --git a/.shenv b/.shenv
index 0f9bfde4..641d66be 100755
--- a/.shenv
+++ b/.shenv
@@ -8,7 +8,7 @@ set +e
# ---- choose editor depending on what's available
-if [ "$DESKTOP_SESSION" = "i3" ]; then
+if [ "$DESKTOP_SESSION" = "i3" ] || [ "$DESKTOP_SESSION" = "xfce" ]; then
ec="emacsclient -c"
else
ec="emacsclient -t"