Skip to content

Commit 87eb61f

Browse files
committed
Enable to add custom el file
1 parent fe4e63b commit 87eb61f

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

Diff for: README.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ $ docker run -v <a host folder>:/root/work -it eshamster/cl-devel2 /bin/sh
1313

1414
Note: `/root/work` is a sym-link to `/root/.roswell/local-projects`
1515

16+
If you want to add custom `.el` file, add `/root/.emacs.d/site-lisp/custom/custom.el` file into the container.
17+
1618
## Description
1719

1820
This mainly consists of ...

Diff for: init.el

+3
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@
147147
(font-lock-add-keywords
148148
nil '(("^[^\n]\\{100\\}\\(.*\\)$" 1 font-lock-warning-face t)))))
149149

150+
;; --- load custom el file if exist --- ;;
151+
(load "custom/custom.el" t)
152+
150153
;; --------------------- ;;
151154
;; --- auto settings --- ;;
152155
;; --------------------- ;;

Diff for: sample-custom-el/custom.el

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(message "--- custom/custom.el is loaded ---")

Diff for: test_run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ docker rmi $(docker images | awk '/^<none>/ { print $3 }') || echo "ignore rmi e
88
docker rm `docker ps -a -q` || echo "ignore rm error"
99

1010
docker build -t ${name}:latest .
11-
docker run --name cl-devel2 -v ~/work/lisp:/root/work -it ${name}:latest /bin/sh
11+
docker run --name ${name} -v ~/work/lisp:/root/work -v "$(pwd)/sample-custom-el":/root/.emacs.d/site-lisp/custom -it ${name}:latest /bin/ash

0 commit comments

Comments
 (0)