RaminHAL9001 / emacs-svg-clock

16 stars 0 forks source link

feature request: center the clock #2

Open Jousimies opened 3 years ago

Jousimies commented 3 years ago

after M-x svg-analog-clock, the clock align to the left of the screen, can it locate in the center of screen?

and beside the clock, there is a huge cursor is twinkling, can it been hided?

RaminHAL9001 commented 3 years ago

Hi, thanks for trying out my code!

can it locate in the center of screen?

I will work on this, it seems to be a good idea, and I believe this is a change I can make without too much trouble.

and beside the clock, there is a huge cursor is twinkling, can it been hided?

As for the blinking cursor, this should already be hidden. Please observe 220-231, I have already written the line of code which should disable the blinking cursor:

(setq-local cursor-type nil)

I have tested it on Linux with Emacs version 27.1 and the cursor is indeed disabled. It is possible your operating system or your version of Emacs does not allow the cursor to be disabled?

Jousimies commented 3 years ago

ok, I will try it tomorrow. This can be used as screen saver when emacs idle.

RaminHAL9001 commented 3 years ago

@Jousimies also if you please, let me know your Emacs version (output of M-x emacs-version) and which operating system you use.

Jousimies commented 3 years ago

@RaminHAL9001 sorry for late, My emacs version is GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.17.4).

The cursor blinking is related to my config, I checked with emacs -Q. I will check and try to fix it.