c-mera
c-mera copied to clipboard
More command-line options for cm
I often invoke c-mera similarly to the following example:
cm c -E '(load "file")' -E '(in-package :my-pack)' ...
to avoid boilerplate.
I guess this is a very common use-case, but might feel hackish to users as the form provided in the string is directly passed to eval.
Maybe it would be better to capture this with additional command-line options, such as
cm c -L "file" -P my-pack ...
Before I go ahead, @lispbub: what do you think, worth doing or not?
seems legit, if you often use it :)
but can't you simply place the (load "file") directly in the source file?
I could do that, but I often end up having a project-specific meta- or header-file that I want to include in all files. This way I can put it into the makefile and only specify it once. Makes the files start out in a 'richer' environment ;)
But yeah, I'm not sure if this is really worth adding... I'll think about it.