help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Emacs Calendar - Removing holidays


From: Christopher Dimech
Subject: Re: Emacs Calendar - Removing holidays
Date: Thu, 19 Nov 2020 16:21:03 +0100

How can I turn holidays off???

This is what Emacs Manual says

31.13.2 Customizing the Holidays

There are several variables listing the default holidays that
Emacs knows about. These are: holiday-general-holidays,
holiday-local-holidays, holiday-solar-holidays,
holiday-bahai-holidays, holiday-christian-holidays,
holiday-hebrew-holidays, holiday-islamic-holidays,
holiday-oriental-holidays, and holiday-other-holidays.


> Sent: Thursday, November 19, 2020 at 3:09 PM
> From: "Jean Louis" <bugs@gnu.support>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: Emacs Calendar - Removing holidays
>
> * Christopher Dimech <dimech@gmx.com> [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
> do:
>
> {C-h v *islamic TAB TAB}
>
> Then you get the list such as:
>
> Possible completions are:
> calendar-islamic-all-holidays-flag
> diary-islamic-entry-symbol
> holiday-islamic-holidays
>
> 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]