Add a modules.el file
The idea behind this, is that it is easier to modify my Emacs config when I don't have to rebuild the system config all the time. The config itself is still under version control so should still be reproducable.
This commit is contained in:
parent
408c332a73
commit
d5767fce5a
|
@ -70,54 +70,11 @@
|
|||
|
||||
;; For better performance use "ssh" instead of "scp"
|
||||
(setq tramp-default-method "ssh")
|
||||
(defun config-path (config)
|
||||
(defun modules-path (config)
|
||||
(setq emacs-config-dir "~/.nixos/home-manager/software/emacs/emacs.d/lib/")
|
||||
(concat emacs-config-dir config))
|
||||
|
||||
;; load specific config files
|
||||
;; basic settings
|
||||
(load-file "~/.emacs.d/variables.el")
|
||||
(load-file (config-path "detect_os.el"))
|
||||
(load-file (config-path "dired.el"))
|
||||
(load-file (config-path "packages.el"))
|
||||
(load-file (config-path "theme.el"))
|
||||
(load-file (config-path "ui.el"))
|
||||
(load-file (config-path "utils.el"))
|
||||
(load-file (config-path "window_split.el"))
|
||||
|
||||
;; keybindings
|
||||
(load-file (config-path "evil.el"))
|
||||
(load-file (config-path "hydra.el"))
|
||||
(load-file (config-path "keybindings.el"))
|
||||
|
||||
;; note taking and writing
|
||||
(load-file (config-path "deft.el"))
|
||||
(load-file (config-path "latex.el"))
|
||||
(load-file (config-path "langtool.el"))
|
||||
(load-file (config-path "markdown.el"))
|
||||
(load-file (config-path "move_text.el"))
|
||||
(load-file (config-path "org_mode.el"))
|
||||
(load-file (config-path "org_insert.el"))
|
||||
(load-file (config-path "pdf_tools.el"))
|
||||
(load-file (config-path "spellcheck.el"))
|
||||
|
||||
;; programming
|
||||
(load-file (config-path "bug_hunter.el"))
|
||||
(load-file (config-path "company.el"))
|
||||
(load-file (config-path "direnv.el"))
|
||||
(load-file (config-path "format_all.el"))
|
||||
(load-file (config-path "magit.el"))
|
||||
(load-file (config-path "powershell.el"))
|
||||
(load-file (config-path "python.el"))
|
||||
(load-file (config-path "webmode.el"))
|
||||
(load-file (config-path "yaml.el"))
|
||||
|
||||
;; various third party
|
||||
(load-file (config-path "counsel.el"))
|
||||
(load-file (config-path "eyebrowse.el"))
|
||||
(load-file (config-path "keyring_update.el"))
|
||||
(load-file (config-path "manuals.el"))
|
||||
(load-file (config-path "mu4e.el"))
|
||||
(load-file (config-path "treemacs.el"))
|
||||
(load-file (config-path "vterm.el"))
|
||||
(load-file (config-path "yasnippet.el"))
|
||||
(load-file "~/.nixos/home-manager/software/emacs/emacs.d/modules.el")
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
(load-file (modules-path "detect_os.el"))
|
||||
(load-file (modules-path "dired.el"))
|
||||
(load-file (modules-path "packages.el"))
|
||||
(load-file (modules-path "theme.el"))
|
||||
(load-file (modules-path "ui.el"))
|
||||
(load-file (modules-path "utils.el"))
|
||||
(load-file (modules-path "window_split.el"))
|
||||
|
||||
;; keybindings
|
||||
(load-file (modules-path "evil.el"))
|
||||
(load-file (modules-path "hydra.el"))
|
||||
(load-file (modules-path "keybindings.el"))
|
||||
|
||||
;; note taking and writing
|
||||
(load-file (modules-path "deft.el"))
|
||||
(load-file (modules-path "latex.el"))
|
||||
(load-file (modules-path "langtool.el"))
|
||||
(load-file (modules-path "markdown.el"))
|
||||
(load-file (modules-path "move_text.el"))
|
||||
(load-file (modules-path "org_mode.el"))
|
||||
(load-file (modules-path "org_insert.el"))
|
||||
(load-file (modules-path "pdf_tools.el"))
|
||||
(load-file (modules-path "spellcheck.el"))
|
||||
|
||||
;; programming
|
||||
(load-file (modules-path "bug_hunter.el"))
|
||||
(load-file (modules-path "company.el"))
|
||||
(load-file (modules-path "direnv.el"))
|
||||
(load-file (modules-path "format_all.el"))
|
||||
(load-file (modules-path "magit.el"))
|
||||
(load-file (modules-path "powershell.el"))
|
||||
(load-file (modules-path "python.el"))
|
||||
(load-file (modules-path "webmode.el"))
|
||||
(load-file (modules-path "yaml.el"))
|
||||
|
||||
;; various third party
|
||||
(load-file (modules-path "counsel.el"))
|
||||
(load-file (modules-path "eyebrowse.el"))
|
||||
(load-file (modules-path "keyring_update.el"))
|
||||
(load-file (modules-path "manuals.el"))
|
||||
(load-file (modules-path "mu4e.el"))
|
||||
(load-file (modules-path "treemacs.el"))
|
||||
(load-file (modules-path "vterm.el"))
|
||||
(load-file (modules-path "yasnippet.el"))
|
Loading…
Reference in New Issue