{"id":19154028,"url":"https://github.com/cjimti/cmd-emacs","last_synced_at":"2026-05-07T14:33:01.666Z","repository":{"id":101889980,"uuid":"126870622","full_name":"cjimti/cmd-emacs","owner":"cjimti","description":"Container-as-command: Emacs","archived":false,"fork":false,"pushed_at":"2018-03-26T20:04:02.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T09:48:36.809Z","etag":null,"topics":["alpine","docker","docker-image","editor","emacs"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cjimti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-26T18:14:28.000Z","updated_at":"2019-07-15T12:19:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8fbb214-e2a1-47d6-93b1-5fccc88330ed","html_url":"https://github.com/cjimti/cmd-emacs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjimti%2Fcmd-emacs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjimti%2Fcmd-emacs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjimti%2Fcmd-emacs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjimti%2Fcmd-emacs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjimti","download_url":"https://codeload.github.com/cjimti/cmd-emacs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240237855,"owners_count":19769824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpine","docker","docker-image","editor","emacs"],"created_at":"2024-11-09T08:25:13.491Z","updated_at":"2026-05-07T14:33:01.623Z","avatar_url":"https://github.com/cjimti.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Docker Container Image Size](https://shields.beevelop.com/docker/image/image-size/cjimti/emacs/latest.svg)](https://hub.docker.com/r/cjimti/emacs/)\n[![Docker Container Layers](https://shields.beevelop.com/docker/image/layers/cjimti/emacs/latest.svg)](https://hub.docker.com/r/cjimti/emacs/)\n[![Docker Container Pulls](https://img.shields.io/docker/pulls/cjimti/emacs.svg)](https://hub.docker.com/r/cjimti/emacs/)\n\n# Background\n\nsee: [https://mk.imti.co/dont-install-emacs/](https://mk.imti.co/dont-install-emacs/)\n\n# Container-as-command: Emacs\n\nI use this for servers with Docker but no emacs. The container works best and is most transparent when it mounts the user's home directory. Mounting a home directory requires a lot of trust in the container. So who am I? You probably want to build your container and lose the need to trust me on this one; it's up to you. Clone or fork [github.com/cjimti/cmd-emacs](https://github.com/cjimti/cmd-emacs), if you would like to create your own. You can also easily cut-and-paste the\n[Dockerfile](https://github.com/cjimti/cmd-emacs/blob/master/Dockerfile) into your own.\n\n\nSee the **Build Container** section below to make your own.\n\n## Install / Run Emacs\n\nInstalling the container-as-command emacs is simply creating an alias\nby adding this line to your .bash_profile or .bashrc:\n```bash\nalias emacs='docker run --rm -it -v \"$PWD\":/src -v \"$HOME\":/root cjimti/emacs'\n```\n\nOpen a new terminal and run:\n```bash\nalias emacs\n```\n\nRun emacs:\n```bash\nemacs\n```\n\nThe files in your current directory mount to the path `/src` in the container.\n\nOpen a file in the new emacs/docker command:\n```bash\nemacs ./somefile.yml\n```\n\n## Debug\n\n```bash\ndocker run --rm -it -v \"$(pwd)\":/src --entrypoint sh cjimti/emacs\n```\n\n## Build Container\n\nChange **cjimti** to your own Docker Hub username if you intend to push the container.\n\n#### Build:\n```bash\ndocker build -t cjimti/emacs .\n```\n#### Push:\n```bash\ndocker push cjimti/emacs\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjimti%2Fcmd-emacs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjimti%2Fcmd-emacs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjimti%2Fcmd-emacs/lists"}