[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs Calendar - Removing holidays

From: Jean Louis
Subject: Re: Emacs Calendar - Removing holidays
Date: Thu, 19 Nov 2020 17:09:35 +0300
User-agent: Mutt/2.0 (3d08634) (2020-11-07)

* Christopher Dimech <> [2020-11-19 16:58]:
> Am trying to remove these holidays but the plan is not working.
> (general-holidays nil)

As in that above case `general-holidays' is supposed to be function as
it comes first in the list.

Maybe you wish to inspect if such function exists by doing:

{C-h f general-holidays RET}

And if it does not exist, it will not work.

I can see that variable `holiday-general-holidays' exists.

To nullify the variable you can do:

(setq holiday-general-holidays nil)

You may also use the {M-:} to open up prompt for evaluations.

For example:

{M-: holiday-general-holidays RET}

And you may see there are some values under that variable. In the next
step you may evaluate nullify it:

{M-: (setq holiday-general-holidays nil) RET}

and then verify again what is the value of variable:

{M-: holiday-general-holidays RET}

Any time you wish to find out if variable exists I suggest that you
use {C-h v}

> (local-holidays nil)
> (christian-holidays nil)
> (hebrew-holidays nil)
> (islamic-holidays nil)
I do suggest using completion package ivy, you may install it with:

{M-x package-install RET ivy RET}

as it is more visual when searching for variables.

If I have ivy installed and I bring cursor to above `islamic-holidays'
then I can just press {C-h v} and `ivy' will show me completion and
locate the highlighted line on the variable if such variable
exists. If it does not exists I will get first item highlighted.

Otherwise if you use the built-in Emacs completion and you press
{C-h v} to search for variable then I recommend using `*' joker
character to search for variables.

Let us say you search for something containing "islamic", you would

{C-h v *islamic TAB TAB}

Then you get the list such as:

Possible completions are:

and you can find out which variable exist related to "islamic" and
inspect such variables.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]