I'm trying to read a value of variable context
from the config file. I use something like this (but have got an error..):
(with-current-buffer
(insert-file-contents "/home/user/liquibase.properties")
(keep-lines "contexts" point-min point-max)
)
The file /home/user/liquibase.properties
has the following structure:
logLevel: off
contexts: my_context
...
Give me a direction please. How to read the content of properties-file, filter it and store some value into a variable? To have the same result as after a call:
(setq ctx "my_context")