Skip to content

Commit 636c7b7

Browse files
committed
Fix doom support
1 parent a32bbf7 commit 636c7b7

File tree

8 files changed

+18
-16
lines changed

8 files changed

+18
-16
lines changed

.gitpod.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM yyoncho/gitpod-default:1.0.22
1+
FROM yyoncho/gitpod-default:1.0.28

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ You can replace `PROJECT` and `URL` with any `github` project. Once you login yo
1414

1515
## Features
1616
* Fully preconfigured ready-to-code Emacs Based IDE. There are several preconfigured
17-
- `Vanilla`
18-
- `Spacemacs`
19-
- `Doom` (TBA)
17+
- `vanilla`
18+
- `spacemacs`
19+
- `doom`
2020
- Your custom config (TBA)
2121
* The following servers are preinstalled on the image(more to come):
2222
- `jdtls`
@@ -28,6 +28,7 @@ You can replace `PROJECT` and `URL` with any `github` project. Once you login yo
2828
- `rust-analyzer`
2929
- `css-ls`
3030
- `clojure-lsp`
31+
- `clangd`
3132

3233
## Tips
3334

docker/base/configs/install-servers.el

+3
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@
2424

2525
(require 'dap-cpptools)
2626
(dap-cpptools-setup)
27+
28+
(require 'dap-node)
29+
(dap-node-setup)

docker/default/Dockerfile

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
FROM yyoncho/gitpod-base:1.0.12
22

3-
USER root
4-
RUN chown gitpod:gitpod /workspace
5-
6-
USER gitpod
3+
RUN sudo apt-get install libtool-bin
74

85
RUN mv .emacs.d vanilla
96

107
COPY .emacs-profiles.el /home/gitpod/.emacs-profiles.el
118
RUN git clone --depth 1 https://github.com/plexus/chemacs2 /home/gitpod/.emacs.d/
129

13-
COPY --from=yyoncho/gitpod-doom:1.0.0 /home/gitpod/.emacs.d /home/gitpod/doom
10+
COPY --from=yyoncho/gitpod-doom:1.0.5 /home/gitpod/doom /home/gitpod/doom
1411

1512
COPY --from=yyoncho/gitpod-spacemacs:1.0.12 /home/gitpod/.emacs.d /home/gitpod/spacemacs
1613
COPY --from=yyoncho/gitpod-spacemacs:1.0.12 /home/gitpod/.spacemacs.d /home/gitpod/.spacemacs.d
@@ -30,11 +27,10 @@ RUN ln -s /home/gitpod/spacemacs/eln-cache /home/gitpod/.emacs.d/
3027
COPY .bashrc-ex /home/gitpod/.bashrc-ex
3128
RUN echo 'source ~/.bashrc-ex' >> ~/.bashrc
3229

33-
COPY --from=yyoncho/gitpod-doom:1.0.0 /home/gitpod/.config/doom /home/gitpod/.config/doom
34-
35-
RUN sudo apt-get install libtool-bin
30+
COPY --from=yyoncho/gitpod-doom:1.0.5 /home/gitpod/.config/doom /home/gitpod/.config/doom
3631

3732
COPY startup.el /home/gitpod/
3833
RUN sudo rm /home/gitpod/.spacemacs.d/*
3934
RUN sudo ln -s /workspace/lsp-gitpod/docker/spacemacs/spacemacs.d/init.el /home/gitpod/.spacemacs.d/
4035
RUN sudo chown gitpod:gitpod /home/gitpod/.spacemacs.d -R
36+
COPY vterm-module.so /home/gitpod/spacemacs/.elpa/28.0/develop/vterm*/

docker/default/startup.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@
3939
(lsp-load-vscode-workspace (car workspaces)))
4040
(lsp-workspace-folders-add directory)))
4141

42+
(require 'f)
43+
4244
(let* ((org (getenv "ORG"))
4345
(project (getenv "PROJECT"))
4446
(root (f-parent (getenv "GITPOD_REPO_ROOT")))
4547
(directory (expand-file-name project root)))
4648
(when (and org project)
47-
(require 'f)
4849
(if (f-exists-p directory)
4950
(progn
5051
(message "Project %s/%s is already cloned in %s" org project directory)
File renamed without changes.

docker/doom/Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ FROM yyoncho/gitpod-base:1.0.9
22

33
USER gitpod
44

5-
RUN rm -rf ~/.emacs.d
65
# Doom
76
## Clone and set the DOOMDIR folder
87

9-
RUN git clone --depth 1 https://github.com/hlissner/doom-emacs /home/gitpod/.emacs.d/ --branch develop
8+
RUN git clone --depth 1 https://github.com/hlissner/doom-emacs /home/gitpod/doom/ --branch develop
109
COPY configs /home/gitpod/.config/doom
1110

1211
## Sync to install modules and packages
1312
RUN ulimit -n 9000
14-
RUN EMACS=~/emacs/src/emacs ~/.emacs.d/bin/doom sync
13+
RUN EMACS=~/emacs/src/emacs ~/doom/bin/doom sync

docker/doom/configs/config.el

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
user-mail-address "[email protected]")
77
(setq doom-theme 'doom-one)
88
(setq display-line-numbers-type t)
9+
10+
(load "~/startup.el")

0 commit comments

Comments
 (0)