This may have an obvious solution, which would explain why I cannot find it anywhere online, but I would like to customize the holidays that show up in my org-agenda
--as easily as possible. Instead of manually entering each holiday in a diary or org mode file, I'd ideally like to draw on the "holidays.el" package. To do this I currently have the line %%(org-calendar-holiday)
in an org mode file. The only problem is that I get every single holiday showing up in my agenda now, most of which are only useful in clogging up my agenda.
Is there a way to "turn off" some of these calendar lists so they don't get displayed in my agenda? I tried going the route of setting variables like holiday-solar-holidays
to "nil," but that doesn't seem to affect their display in the agenda. This increases my suspicion that the holiday-xx-holidays
variables are only applicable to the calendar, and not the agenda. If that's the case I'll assuredly have to go another route, and other suggestions would be welcome.
My end goal is to have major U.S. holidays and solar holidays displayed in my agenda. With so few holidays you may ask why I don't manually enter them and forget the org-calendar-holiday
function and "holidays.el" library all together. Well, coding the dates of all future solstices and equinoxes doesn't sound very appealing. Plus, I like drawing on what's already been done when I can--in this case the "holidays" package. Although I could be using it in an entirely different manner than it was intended.
As a side note, I read the post entitled "Programmatically add birthdays/holidays to agenda view in org-mode", but there didn't seem to be enough detail to tell if it's the same issue I'm encountering. And interesting as the current answer in that post is, it's not the solution I'm hoping for.
Thanks for your help.
*scratch*
buffer and typeM-x eval-buffer RET
and then typeM-x org-agenda RET
and then selectY
. It is a fully functional working draft, but needs a little customization to make it prettier and add ability to sort alphabetically, etc. I invented it because it didn't exist. I'm sorry that I haven't wrote up any documentation yet. If you don't like it after you try it, just restart Emacs and you'll be back to where you were before you tried it.holidays.el
package (as it sounds like it can) to displayholiday-solar-holidays
holidays too? I read through thecalendar-holidays
documentation, but it's still not evident to me. This could just be my inexperience showing through!holiday-solar-holidays
and inserted it intoorg-agenda--holiday-list
. The code I extracted and added to my own example looks like this:(solar-equinoxes-solstices) (holiday-sexp calendar-daylight-savings-starts . . .
In other words, your feature request has already been incorporated into my example.(solar-equinoxes-solstices) ...
code, so I didn't simply omit it by accident.(solar-equinoxes-solstices)
: (6 21 2015) -- holiday -- Summer Solstice 9:37am (PDT); (9 23 2015) -- holiday -- Autumnal Equinox 1:20am (PDT); (12 21 2015) -- holiday -- Winter Solstice 8:47pm (PST); and, (3 19 2016) -- holiday -- Vernal Equinox 9:29pm (PDT). The function uses certain values depending upon whether or not the user has defined the following variables:calendar-time-zone
andcalendar-standard-time-zone-name
-- e.g., UTC will be used if no time zone.