summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2025-05-18 00:57:47 +0100
committerSam Light <samlight1994@gmail.com>2025-05-18 00:57:47 +0100
commit40af9d46384960f7217735e2c500960f3da91a3e (patch)
tree68430d0940e6e33cfbe57e44b193ac089a1877d9 /init.el
parentd14ca77f0738fa1b70d979876c13189a9bf34a13 (diff)
Enabled treesitter and completion config
Diffstat (limited to 'init.el')
-rw-r--r--init.el22
1 files changed, 15 insertions, 7 deletions
diff --git a/init.el b/init.el
index c52e08c..01498d6 100644
--- a/init.el
+++ b/init.el
@@ -3,10 +3,18 @@
(defvar savefile-dir (expand-file-name "savefile" user-emacs-directory)
"This folder stores all the automatically generated save/history-files.")
-(load "~/.emacs.d/config/ui")
-(load "~/.emacs.d/config/packages")
-(load "~/.emacs.d/config/editor")
-(load "~/.emacs.d/config/common")
-(load "~/.emacs.d/config/helm")
-(load "~/.emacs.d/config/projectile")
-(load "~/.emacs.d/config/magit")
+(defvar config-dir (expand-file-name "config" user-emacs-directory))
+
+(defconst config-files
+ '("ui"
+ "packages"
+ "editor"
+ "common"
+ "helm"
+ "projectile"
+ "magit"
+ "completion"
+ "tree-sitter"))
+
+(dolist (file config-files)
+ (load (expand-file-name file config-dir)))