summaryrefslogtreecommitdiffstats
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el14
1 files changed, 9 insertions, 5 deletions
diff --git a/init.el b/init.el
index e4f7e88..a02fd33 100644
--- a/init.el
+++ b/init.el
@@ -90,7 +90,16 @@
:ensure t
)
+(use-package s :ensure t)
+(require 's)
(require 'ravi-ergodox-mode)
+(if (s-contains? "Ergodox" (shell-command-to-string "xinput"))
+ (ravi-ergodox-mode)
+ (progn
+ ;; Temporary key-bindings
+ (bind-key "<f9>" 'ido-find-file)
+ (bind-key "<f8>" 'ido-switch-buffer)
+ (bind-key "<f12>" 'undo-tree-undo)))
(require 'ravi-init-ido)
(require 'ravi-init-marks)
@@ -103,8 +112,3 @@
(require 'ravi-init-cpp)
(require 'ravi-init-python)
(require 'ravi-init-layouts)
-
-;; Temporary key-bindings
-(bind-key "<f9>" 'ido-find-file)
-(bind-key "<f8>" 'ido-switch-buffer)
-(bind-key "<f12>" 'undo-tree-undo)