Sane Modules is an Emacs Lisp package designed to efficiently manage and load custom Emacs modules. It allows users to maintain a structured and clean Emacs environment by organizing modules into a specified directory and loading them as needed.
- Manage custom Emacs modules in a dedicated directory.
- Specify and load modules easily with a simple configuration.
- Generate new module templates quickly.
- Optional timing reports for module loading to aid in performance tuning.
To install Sane Modules, clone the repository or download the ‘sane-modules.el’ file into your Emacs load path. Then, add the following to your Emacs configuration:
(require 'sane-modules)
Configure Sane Modules by setting the base directory for your modules and listing the modules you want to load:
(setq sane-module-base-directory "~/path/to/your/modules/")
(setq sane-module-module-list '(module1 module2 module3))
Replace the paths and module names with your own setup.
** Loading Modules Load your configured modules with:
(sane-modules-load-modules
sane-module-base-directory
sane-module-module-list)
Optionally, enable timing reports by setting the timing flag to ‘t’:
(sane-modules-load-modules
sane-module-base-directory
sane-module-module-list t)
** Creating New Modules Generate a new module with a predefined template:
(sane-create-project-with-template)
Follow the interactive prompts to specify the directory and module name.
Customize the module template and other settings via Emacs customization interface. Access it through:
(customize-group 'sane-modules)
Contributions to Sane Modules are welcome. Please submit pull requests or report issues via the project’s repository.
Sane Modules is released under the MIT License, see the LICENSE file for more details.
For questions or feedback, please contact [email protected].