Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a modular-config-create-module command #5

Open
alex-a-soto opened this issue Sep 25, 2020 · 1 comment
Open

Add a modular-config-create-module command #5

alex-a-soto opened this issue Sep 25, 2020 · 1 comment

Comments

@alex-a-soto
Copy link

SidharthArya, Thank you for your time and for creating this package. I appreciate it.

Background
I'm in the process of transitioning from Doom to my configuration and using modular-config to achieve this. As I'm abstracting my configuration into separate loadable modules, I realize that I'm often creating a new module in the modular-config-default directory and appending #!/usr/bin/emacs --script to the top of the file. While this process of manually creating a module works, I feel that it adds some level of friction.

Proposal:
Create a new function called modular-config-create-module

  1. modular-config-create-module would prompt the user for the name of the module.
  2. The module is created in the modular-config-default directory.
  3. The current buffer switches to the created module.
  4. The created module would be a new file that contains #!/usr/bin/emacs --script in the first line.

Thank you for your time and consideration.

@SidharthArya
Copy link
Owner

SidharthArya commented Sep 26, 2020

I see.
I can probably add a modular-config-create-module function, but it would make sense to insert #!/usr/bin/emacs --script using some sort of a template engine or auto-insert-mode.
Does that sound good ?
Please refer to this: https://www.gnu.org/software/emacs/manual/html_mono/autotype.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants