Browse Source

Fix function indents, add Handmade Network link

The function arguments were driving me crazy, so I'm very happy to
have these fixed.
precompiled-headers
Macoy Madson 2 months ago
parent
commit
92fd952792
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      ReadMe.org
  2. +3
    -3
      doc/ToolsIntegration.org

+ 1
- 1
ReadMe.org View File

@ -8,7 +8,7 @@ The goal is a metaprogrammable, hot-reloadable, non-garbage-collected language i
It is a transpiler which generates C/C++ from an S-expression syntax. Cakelisp takes some inspiration from Lisp, but is not compatible and does not aspire to become "a Lisp".
You can see the [[https://macoy.me/blog/programming/CakelispIntro][introduction to Cakelisp]] and check out the [[https://news.ycombinator.com/item?id=25491568][Hacker News announcement thread]].
You can see the [[https://macoy.me/blog/programming/CakelispIntro][introduction to Cakelisp]] and check out the [[https://news.ycombinator.com/item?id=25491568][Hacker News announcement thread]]. Cakelisp is also a part of [[https://cakelisp.handmade.network/][Handmade Network]].
* Features
- *The metaprogramming capabilities of Lisp:* True full-power macro support. Macros can use compile-time code execution to conditionally change what is output based on the context of the invocation


+ 3
- 3
doc/ToolsIntegration.org View File

@ -20,9 +20,9 @@ Create a ~.gitattributes~ file in the project root, then add the following:
The number represents how many arguments are expected to the function.
#+BEGIN_SRC lisp
(put 'defun-local 'lisp-indent-function 2)
(put 'defun-comptime 'lisp-indent-function 2)
(put 'defgenerator 'lisp-indent-function 2)
(put 'defun-local 'lisp-indent-function 'defun)
(put 'defun-comptime 'lisp-indent-function 'defun)
(put 'defgenerator 'lisp-indent-function 'defun)
(put 'defstruct-local 'lisp-indent-function 1)
(put 'defstruct 'lisp-indent-function 1)


Loading…
Cancel
Save