Used to test different Emacs configurations. The script starts Emacs with the init-file from one of the directories, changes it's default location to that directory, downloads different packages to a subdirectory, and opens the init-file from that directory. This means you can test different Emacs init-file versions without cluttering your main emacs user-init-directory.
Currently this works in Windows 10. Other versions not tested, but any Windows version will probably work.
- GNU/Emacs 25 or later. (But it might also work from Emacs 24.4, and derivates. Depends on use-package)
- Git
- a working environment with a path that includes git and emacs executables.
emacs.exe
must be in the path for the scripts to work
In Windows from either the command-shell or powershell. From Linux use the the shell according to instructions below.
git clone https://github.com/sdaaish/emacs-demo.git
cd emacs-demo
.\demo.cmd demo1\init.el
.\demo.cmd demo2\init.el
...
git clone https://github.com/sdaaish/emacs-demo.git
cd emacs-demo
.\demo.ps1 demo1\init.el
.\demo.ps1 demo2\init.el
...
git clone https://github.com/sdaaish/emacs-demo.git
cd emacs-demo
.\demo.sh demo1\init.el
.\demo.sh demo2\init.el
...
This starts Emacs with the settings in the init-file. All changes stays in that directory and not your ~/.emacs.d
. This is useful for testing different settings or packages.
Info about Emacs startup options
Syntax: .\demo.cmd <demo[1-n]>\init.el
Syntax: .\demo.ps1 <demo[1-n]>\init.el
Syntax: .\demo.sh <demo[1-n]>\init.el
Plain emacs config with use-package
. Demonstrates how to load packages from scratch with use-package.
A very basic config to start with.
Downloads helm and
helm-google`.
Preconfigured for testing of company mode
.
And you can of course create your own directories with your config. But the script currently requires the init-file to be called init.el
. The directory can be called anything.
Try lsp-mode
. Limited functionality at the moment.
An example of how to publish a separate directory with org-publish
. Can be used i CI/CD and automation to publish org-mode files to HTML. Complete example that generates a ready HTML-output.
Try emacs with yasnippet-mode
.
The initial startup of emacs is slow, since it downloads packages at startup. But the second time it will be faster.
Emacs packages are stored in a common folder to make startup faster when you switch between different configurations. This might interfere with older configurations.
There is also other configurations of emacs that you can try out if you don't want to start from scratch. For example: