c-mera icon indicating copy to clipboard operation
c-mera copied to clipboard

More command-line options for cm

Open kiselgra opened this issue 8 years ago • 2 comments

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?

kiselgra avatar Feb 28 '17 19:02 kiselgra

seems legit, if you often use it :) but can't you simply place the (load "file") directly in the source file?

lispbub avatar Mar 01 '17 10:03 lispbub

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.

kiselgra avatar Mar 01 '17 16:03 kiselgra