Doom-emacs: Question: private modules

Created on 20 Jun 2018  路  2Comments  路  Source: hlissner/doom-emacs

I want to have some private modules, such as my own :lang myhaskell, but I don't want to maintain my own fork. Is there any way to load modules from ~/.doom.d/modules/lang/myhaskell. As far as I know, doom-modules-dir is defined as a constant. Is there any way around it?

discussion

Most helpful comment

Doom supports modules in ~/.doom.d/modules. It follows the same structure as ~/.emacs.d/modules/CATEGORY/MODULE/. e.g. ~/.doom.d/modules/lang/haskell.

If a private submodule has the same name as a Doom module, like ~/.doom.d/modules/lang/haskell, then that effectively replaces Doom's.

Otherwise, if you want to put it in ~/.doom.d/modules/lang/myhaskell, you'll have to add :lang myhaskell to your doom! block.

All 2 comments

There is :private facility in doom. With it you can copy lang/haskell into ~/.doom.d./modules/private/haskell, comment out haskell under :lang and enable your own like this:
```
:config
... .... ...
:private ;; ~/.doom.d/modules/private/{...}
haskell
)

Doom supports modules in ~/.doom.d/modules. It follows the same structure as ~/.emacs.d/modules/CATEGORY/MODULE/. e.g. ~/.doom.d/modules/lang/haskell.

If a private submodule has the same name as a Doom module, like ~/.doom.d/modules/lang/haskell, then that effectively replaces Doom's.

Otherwise, if you want to put it in ~/.doom.d/modules/lang/myhaskell, you'll have to add :lang myhaskell to your doom! block.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

askurihin picture askurihin  路  3Comments

AloisJanicek picture AloisJanicek  路  3Comments

Ptival picture Ptival  路  3Comments

governorgoat picture governorgoat  路  3Comments

randomizedthinking picture randomizedthinking  路  3Comments