diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-08-21 15:35:32 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-08-21 15:36:11 -0700 |
commit | 4493e63be0ac1a4573baf30e6b70ed6fb8c89aed (patch) | |
tree | cce44af458c7570e076d7aafe766ba2ad70ebdc1 | |
parent | 1be4cb95e41a3fee1ab0ab6748d31cc847c5e3ac (diff) | |
download | dotfiles-4493e63be0ac1a4573baf30e6b70ed6fb8c89aed.tar.gz |
adapt for new DESKTOP_SESSION value
-rw-r--r-- | .emacs.d/init-spw.el | 4 | ||||
-rwxr-xr-x | .shenv | 2 |
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 @@ -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" |