Code Monkey home page Code Monkey logo

emacs-x11-alpine's Introduction

Try Emacs with Docker!

This is the easiest way to try all the set of humitos' configurations (https://github.com/humitos/emacs-configuration) without touching your computer configuration and break anything:

docker run --rm -it \
    -e DISPLAY \
    -v $(pwd):/src \
    -v /tmp/.X11-unix:/tmp/.X11-unix:ro \
    -v $XAUTHORITY:/root/.Xauthority \
    --net=host \
    humitos/emacs-x11-alpine

What that command does?

In a few words, it downloads a minimal pre-built linux image with emacs and this configuration already setup with all its dependencies. So, once you run that command and after downloading the image (~350 Mb) you will see emacs running in your computer.

What those strange arguments mean?

This is the explanation per argument:

-i, –interactive
runs the command in an interactive way by keeping STDIN open

-t, –tty
allocates a pseudo-TTY

-e, –env
shares the DISPLAY environment variable so emacs it’s opened there

-v, –volumen
mounts the files needed to write by the container in that DISPLAY

–net
allows this writing communication

–rm
automatically removes the container when it exits

How I can edit files from my computer with this image?

As the image is ran in an isolated container, it doesn't have access to your data from your computer. So, if you want to use this image for real, you have to mount the directory where the files you want to modify are. This is done by using the -v option. For example:

-v /home/humitos/source:/src:rw

After running the docker command including this new parameter you will be able to modify all the files from your /home/humitos/source directory. This folder will be mounted under /src on the container so /home/humitos/source/test.py file will be accessed by /src/test.py. By the default is the current directory.

Full documentation at: https://github.com/humitos/emacs-configuration

emacs-x11-alpine's People

Contributors

humitos avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

raivtash

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.