summaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2022-12-24 19:52:34 -0500
committerAmin Bandali <bandali@gnu.org>2022-12-24 19:53:49 -0500
commit5d40c938921c6df2af77df6a453eff70d60cf685 (patch)
tree874a115b032ed4ff3c1be78bc8b196c5bb732255 /.emacs.d/init.el
parent78619ba4c53776ab14ca21a87852926885bbb56d (diff)
downloadconfigs-5d40c938921c6df2af77df6a453eff70d60cf685.tar.gz
configs-5d40c938921c6df2af77df6a453eff70d60cf685.tar.xz
configs-5d40c938921c6df2af77df6a453eff70d60cf685.zip
Various tweaks and fixes for using EXWM
* .Xresources.d/xterm: Allow send events, needed for EXWM's simulation keys to work. * .emacs.d/init.el: Check additionally that we're in a graphical environment, though not in another window manager or desktop environment, before running EXWM. Also, use the EXWM-provided function for switching buffers that also works for EXWM windows, including windows in other workspaces or those that are floating. * .emacs.d/lisp/bandali-exwm.el: Tweak and add to global and simulation keys for more convenience. * .gnupg/gpg-agent.conf: It seems we need to explicitly set a pinentry-program, otherwise GPG will pick the tty or ncurses one even when we're not in a tty or terminal, which will not work and cause problems when using EXWM.
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index b4a16cc..7f6ef96 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -491,8 +491,14 @@ for all frames."
(expand-file-name
(convert-standard-filename "lisp") user-emacs-directory))
-(when (member (system-name) '("chaman"))
- (require 'bandali-exwm))
+(when
+ (and
+ (display-graphic-p)
+ ;; we're not running in another WM/DE
+ (not (getenv "XDG_CURRENT_DESKTOP"))
+ (member (system-name) '("chaman")))
+ (require 'bandali-exwm)
+ (global-set-key (kbd "C-x b") #'exwm-workspace-switch-to-buffer))
(require 'bandali-org)