aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshoshin <shoshin@cicadas.surf>2022-07-04 15:21:24 -0500
committershoshin <shoshin@cicadas.surf>2022-07-04 15:21:24 -0500
commita1e148a6810bfc8e25cdd8e789de30068d342ff9 (patch)
tree51ae2b53bff4222d450cfdb3336ac790d220b67f
parent72088b763efbcc6d3e2f4c724917cd6a66754535 (diff)
Fix: [xah-fly-keys] set ctrl & meta vars before require
otherwise xfk clobbers the normal bindings and it is confusing
-rw-r--r--shoshin-config.el5
-rw-r--r--shoshin-config.org5
2 files changed, 6 insertions, 4 deletions
diff --git a/shoshin-config.el b/shoshin-config.el
index 6fecaed..fccc766 100644
--- a/shoshin-config.el
+++ b/shoshin-config.el
@@ -11,11 +11,12 @@
package-native-compile t))
;;; Major Keybinding
+;; these need to be set before requiring the package
+(setq xah-fly-use-control-key nil
+ xah-fly-use-meta-key nil)
(package-install 'xah-fly-keys)
(require 'xah-fly-keys)
(xah-fly-keys-set-layout "qwerty")
-(setq xah-fly-use-control-key nil
- xah-fly-use-meta-key nil)
(xah-fly-keys t)
;;; Completion
diff --git a/shoshin-config.org b/shoshin-config.org
index b67f689..224c0c1 100644
--- a/shoshin-config.org
+++ b/shoshin-config.org
@@ -168,11 +168,12 @@ tightly right now. you may have other opinions about keybindings
#+name: keybinding
#+begin_src emacs-lisp
+ ;; these need to be set before requiring the package
+ (setq xah-fly-use-control-key nil
+ xah-fly-use-meta-key nil)
(package-install 'xah-fly-keys)
(require 'xah-fly-keys)
(xah-fly-keys-set-layout "qwerty")
- (setq xah-fly-use-control-key nil
- xah-fly-use-meta-key nil)
(xah-fly-keys t)
#+end_src