Commit bef0fd1f6b51fdfb0e5089a754e5520c28101c1c

Thomas de Grivel 2020-04-10T18:52:23

readme

diff --git a/README.md b/README.md
index 4ea54bd..4eebe9d 100644
--- a/README.md
+++ b/README.md
@@ -53,13 +53,20 @@ Usage
   $ sudo cp build/adams /usr/local/bin/adams
 ```
 
-4. Use shebang in your executable script
-File: my-config.adams
+4. Configure emacs (optional)
+In your `~/.emacs`
+```
+  ;;  Adams
+  (add-to-list 'auto-mode-alist '("\\.adams\\'" . lisp-mode))
 ```
-#!/usr/local/bin/adams --script
 
-(resource 'host "adams.kmx.io"
-          :user "adams"
-          (resource 'user "adams"
-                    :shell "/bin/sh"))
+5. Write some resources in a .adams script
+File: my-config.adams
+``` common-lisp
+  #!/usr/local/bin/adams --script
+
+  (resource 'host "adams.kmx.io"
+            :user "adams"
+            (resource 'user "adams"
+                      :shell "/bin/sh"))
 ```