Putting a plug on a light fitting
I use a decorative chain to support the horizontal lamp cord:



This is called a swag  lamp in the USA.

Of course your installation would not have the vertical segment above the lamp. I have found that a decorative plastic chain is adequate in such cases.

Note that at the suspension points the cord remains within the chain and does not pass over the hooks. Hanging a lamp cord over a hook guarantees that it will eventually break.