My Emacs configuration is used as an example to configure Emacs in the container.
Initially follow instructions at Local environment with Docker4Drupal.
Add GUI support
Add GUI support to the Docker compose file by adding two lines to the
nginx, below the existing line
- ./:/var/www/html, as follows:
This is inspired by the following YouTube video: How to Run a Graphical Application from a Container? Yes, I Know IT! Ep 20.
To build images and bring them up.
Allow for some time to let it settle.
Connect to development image
Execute a root bash shell in the container to install required additional packages.
From the root bash shell in the container:
Execute a bash shell in the container to set up Emacs.
From the bash shell in the container:
If the emacsclient command doesn’t work the first time then restart the Emacs daemon by repeating the
emacs --daemon and
-nc web/index.php commands.