Comments (4)
Hi Markus,
I'm not familiar with dump-files. Can you explain briefly what this would mean exactly?
from chemacs.
Hi,
sorry, yes, should have given some context...
So, Emacs has this feature called 'portable dumper' which lets you dump the (memory) state of an Emacs instance (with all loaded elisp files, packages etc) into a file. If you then start Emacs with the '--dump-file [path_to_dump_file]' option, startup is much faster, since no loading of packages/elisp files has to be done anymore (at least for the packages that were loaded when the whole thing was dumped). You can reduce startup from several seconds to sub-one-second times in some instances. Also, for example the first time opening an org mode file would be much quicker, since the whole of org-mode would also already be loaded into memory.
Now, this only works on the same machine (you can't use dump files on other machines than the one used to create them), or different versions of Emacs. It also mostly only works for the same Emacs configuration used when dumping (this is why I think it'd be a good fit for chemacs, since it already makes it easy to manage those configurations).
The dumping only has to be done once. Well, until there is a configuration or other relevant change. Spacemacs for example has an option to automatically build such a dump file whenever necessary, more or less automatically.
After dumping, you get the speedup with every Emacs invocation, so, for example, in a lot of cases emacsclient is not necessary anymore, since the 'normal' startup is already fast enough. I have a few other use-cases in mind, but I'd need a way to manage different Emacs configs alongside their respective dump files.
Long story short: what I would find useful is an option in a chemacs profile, to specify a path to a dump file along the other options (env, etc...). So, if such a path existed, Chemacs would then start emacs with the '--dump-file' option, pointing to the dump file in question. Does that make sense?
I could implement this myself and send a pull request, but would be keen to know whether you see any blockers/reasons this would not work with Chemacs?
from chemacs.
That all sounds reasonable, but I'm not sure we can do that in chemacs. Chemacs is just a .emacs/init.el type script. By the time it kicks in emacs has already loaded...
from chemacs.
Ah, ok. Makes sense. In that case I'll probably write a shell-wrapper around chemacs. Thanks!
from chemacs.
Related Issues (20)
- Cannot load default set in .emacs-profiles.el
- Environment Variable HOT 5
- spacemacs HOT 2
- Windows 10 symlink instructions
- Spacemacs needs to be the default profile to be able to restart
- chemacs is not context aware HOT 1
- realpath issue in install script HOT 3
- Chemacs not working with fish-shell on MacOS HOT 1
- Wrong .emacs path on Windows 10 HOT 3
- No such file or directory "/home/x/.emacs.d/init.el" HOT 2
- Is there a reason to use ".emacs" instead of ".emacs.d"? HOT 2
- abbrev-file-name points to ~/.emacs.d HOT 2
- Problem with Windows installation HOT 1
- Add examples of using emacsclient HOT 6
- Feature request: functions to edit .emacs-profiles.el HOT 3
- emacsclient: unrecognized option '--with-profile' HOT 6
- Scrollbar & toolbar showing when using Doom + Chemacs HOT 3
- (Spac)emacs uses packages from wrong profile
- Have found ihsec
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chemacs.