From 1eaa11fee9774a9d27b6a158161a99ebc2f9f007 Mon Sep 17 00:00:00 2001 From: Ravi R Kiran Date: Sat, 15 Feb 2014 19:48:46 -0800 Subject: Automatically enable ergodox mode 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 "" 'ido-find-file) + (bind-key "" 'ido-switch-buffer) + (bind-key "" '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 "" 'ido-find-file) -(bind-key "" 'ido-switch-buffer) -(bind-key "" 'undo-tree-undo) -- cgit v0.10.1