From 7c16649462beca822c0b72438a2b20e77a261985 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Tue, 22 Dec 2020 20:35:51 +0800 Subject: Initial commit --- init.el | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 init.el (limited to 'init.el') diff --git a/init.el b/init.el new file mode 100644 index 0000000..3e10d19 --- /dev/null +++ b/init.el @@ -0,0 +1,19 @@ +;;; macro to conveniently load files + +;;;###autoload +(defvar load-file-directory (cond ((stringp load-file-name) + (file-name-directory load-file-name)) + (t default-directory)) + "The directory to load files") + +(defun load-config (file-name) + "Conviently load configuration files in the same directory as this file." + (load-file (expand-file-name file-name load-file-directory))) + +(load-config "basic.el") + +(load-config "theme.el") + +;; (load-config "modeline.el") + + -- cgit v1.2.3-18-g5258