summary refs log tree commit diff
path: root/emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/init.el')
-rw-r--r--emacs.d/init.el87
1 files changed, 47 insertions, 40 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index 840bd29..6714294 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -11,43 +11,50 @@
 (add-to-list 'load-path (expand-file-name "config" user-emacs-directory))
 (add-to-list 'load-path (expand-file-name "modules" user-emacs-directory))
 
-(require 'config-env)
-(require 'config-lib)
-(require 'config-package)
-(require 'config-set-path)
-
-(require 'module-general)
-(require 'module-appareance)
-(require 'module-hydra)
-(require 'module-editing)
-(require 'module-codestyle)
-
-(require 'module-ibuffer)
-(require 'module-git)
-(require 'module-dired)
-(require 'module-ivy)
-(require 'module-project)
-(require 'module-flycheck)
-(require 'module-flyspell)
-(require 'module-autocomplete)
-
-(require 'module-make)
-(require 'module-pants)
-
-(require 'module-c)
-(require 'module-docker)
-(require 'module-go)
-(require 'module-java)
-(require 'module-json)
-(require 'module-lisp)
-(require 'module-protobuf)
-(require 'module-puppet)
-(require 'module-python)
-(require 'module-rust)
-(require 'module-scala)
-(require 'module-shell)
-(require 'module-thrift)
-
-(require 'module-markdown)
-(require 'module-toml)
-(require 'module-yaml)
+(dolist (sub (list
+              (replace-regexp-in-string "/" "-" (symbol-name system-type))
+              (symbol-name window-system)
+              (replace-regexp-in-string "\\..*" "" (system-name))))
+  (load (concat "module-" sub) t))
+
+
+(load "config-env")
+(load "config-lib")
+(load "config-package")
+(load "config-set-path")
+
+(load "module-general")
+(load "module-appareance")
+(load "module-hydra")
+(load "module-editing")
+(load "module-codestyle")
+
+(load "module-ibuffer")
+(load "module-git")
+(load "module-dired")
+(load "module-ivy")
+(load "module-project")
+(load "module-flycheck")
+(load "module-flyspell")
+(load "module-autocomplete")
+
+(load "module-make")
+(load "module-pants")
+
+(load "module-c")
+(load "module-docker")
+(load "module-go")
+(load "module-java")
+(load "module-json")
+(load "module-lisp")
+(load "module-protobuf")
+(load "module-puppet")
+(load "module-python")
+(load "module-rust")
+(load "module-scala")
+(load "module-shell")
+(load "module-thrift")
+
+(load "module-markdown")
+(load "module-toml")
+(load "module-yaml")