feat(emacs): Basic emacs setup

This commit is contained in:
js0ny 2025-01-28 14:27:46 +00:00
parent 2346c13564
commit 6edb5d9e90
7 changed files with 134 additions and 0 deletions

31
tools/emacs.d/init.el Normal file
View file

@ -0,0 +1,31 @@
;;; init.el --- Entry point of GNU/Emacs configuration
;;; First edit date 2025/01/27
;;; Organised by such directory structure
;;; init.el -- This file, entry point
;;; lisp/
;;; init-basic.el
;;; init-keymaps.el
;;; init-package.el
;;; init-evil.el
;;; custom.el -- Auto Generated
;; All elisp files under emacs.d/lisp will be loaded
(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))
;; Store the auto-generated custom config to `custom.el`
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
;; Load each modules
(require 'init-basic)
(require 'init-keymaps)
(require 'init-package)
(require 'init-evil)
;; Load `custom` file
(when (file-exists-p custom-file)
(load custom-file))
;;; init.el end