You ask a very general question about using this feature and how to find a detailed description of it, what its possibilities are, and how they work.
The answer is to ask Emacs. Use C-h r to consult the Emacs manual. Then use i calendar RET to go to node Calendar/Diary, which is a subsection of the manual that has several subsubsections:
* Calendar Motion::...
I solved this myself using excorporate. To activate and integrate excorporate I used the following configuration in my .spacemacs (since I am using spacemacs)
I added excorporate to dotspacemacs-additional-packages and added the following to the user-config section of .spacemacs
;; configure excorporate
;; allow opening the exchange calendar with 'e' ...
If you're looking for a Google calendar like tool built into Emacs, take a look at org-mode. To set up, just add
(define-key global-map "\C-ca" 'org-agenda)
to your .emacs. You can then create a file called (for example) calendar.org containing lines like
* An Event
* TODO A Task
* This ...
Turns out the reason why the exported ics files was empty was because I didn't customize the variables related to ical export. I had to run customize-group on org-export-icalender and change quite a few parameters. I changed org-icalendar-use-scheduled, org-icalendar-use-deadline, org-icalendar-include-body org-icalendar-timezone, org-icalendar-store-UID. It ...
You can customize option initial-buffer-choice (using M-x customize-option).
The value can be a buffer name (the name of your calendar buffer, if it exists - e.g. "*Calendar*") or a function that returns a buffer. The buffer is displayed in place of the welcome (aka "splash") screen.
It is of course up to you to ensure that when you start up Emacs the ...
The following is a modification to org-agenda-list, with additional new variables and a new function to add holidays/ birthdays. When org-agenda--show-holidays-birthdays is non-nil, birthdays and holidays will appear programmatically in the agenda view. The variables org-agenda--birthday-list and org-agenda--holiday-list can be customized by the user. An ...
To learn more about the variable diary-file, type M-x describe-variable RET diary-file RET This can be set through the built-in customize interface -- M-x customize-variable RET diary-file RET -- or by placing something like the following snippet in the .emacs file:
(setq diary-file "/hello/world/diary-file")
If setting it manually, then restart Emacs or ...
I have holidays displayed in my org-agenda; here's how I do it.
Via Customize, (changing custom-set-variables) :
Turn off holidays I don't want displayed :
Tell agenda to display events from calendar diary:
Result : holidays will ...
Answering myself, I came up with this. I created a function to
detect whether a given date is the last weekday of the month.
There's two main cases: if it's the last day of the month and
it's a weekday, then obviously it's the last weekday of the month.
Otherwise, the last weekday of the month must be a Friday, and it
will be either the last-but-one or last-...
There is a lot of inputs you can give to specify a date or time. The whole overview is here. Just some notable examples:
+1 or just +: tomorrow
+1w: next week
sat: next saturday
Absolute dates are a bit weird. It uses ISO YMD format by default: 3-2-5 expands to 2003-02-05. I prefer to use 23 jan 19 or 23 jan 2019 (equal to 19-1-23) to use ...
org-read-date can handle a certain amount of fuzziness, e.g.
'22 sept 0:34’ ⇒ 2006-09-22 0:34
‘w4’ ⇒ ISO week for of the current year 2006
‘2012 w4 fri’ ⇒ Friday of ISO week 4 in 2012
‘2012-w04-5’ ⇒ Same as above
See Org Mode date/time prompt for the gory details.
I ended up with the code below. I guess it can be shorten/optimized (it's a bit slow) but it does the job.
(defface busy-1 '((t :foreground "black" :background "#eceff1")) "")
(defface busy-2 '((t :foreground "black" :background "#cfd8dc")) "")
(defface busy-3 '((t :foreground "black" :background "#b0bec5")) "")
(defface busy-4 '((t :foreground "black" :...
The built-in calendar-mode and diary-mode have their limitations. However, diary-mode is designed to present a span of time if so desired. Load the diary-lib library with M-x eval-expression RET (require 'diary-lib) RET and then type M-x describe-function RET diary-list-entries RET to read about it. For more advanced searching and calendaring abilities, ...
Yes, there is a FIXME comment in the code of that function for this very issue, so check and see if there's an existing bug logged for it, and if not then go ahead and report it.
;; FIXME: replace this cruft with the `quit-restore' window property
Edit: This exists as bug #11140.
The most recent message suggests that the proposal has most likely been ...
For agenda view, I found out Capture with cursor date k does what I want after setting (setq org-default-notes-file "~/todo.org") in my .emacs.
It is not that visual compared to Outlook calendar, but good enough for me.
SHORTCUT: Copy and paste code into the *scratch* buffer; type M-x eval-buffer RET; and, then type M-x count-business-days RET.
DOCUMENTATION: As mentioned in the comment underneath the question, this answer is dependent upon the holiday calendar defined by the particular user -- e.g., federal holidays in U.S.; state court holidays (e.g., California, U.S.);...
The solution would seem to be to create individual entries for every occurrence of the recurring event, which will be tedious and inefficient.
Why? It would be the way to gain maximum control and AFAIK this is required for repeated events that you want to transfer via e.g. org-caldav.el. The reason is that you need an UID (Unique) for each event to be ...
The documentation of the customization option calendar-mark-holidays-flag says:
Non-nil means mark dates of holidays in the calendar window.
The marking symbol is specified by the variable `calendar-holiday-marker'.
I suggest to enable this option. I've tested it with emacs -Q and it works in emacs 25.3.1.
The screenshot after additionally adding ...
The following code augments the key sequence M-w such that it copies
the date below point with the format "%d.%m.%Y when region is not active ( %d: zero padded day, %m: zero-padded month, %Y: year).
You can change the format with the customization option calendar-copy-as-kill-format.
(defcustom calendar-copy-as-kill-format "%d.%m.%Y"
"Format string for ...
I think european-calendar-style disappeared at some point (I have it as a commented line in my doemacs file). You should use calendar-date-style:
(setq calendar-date-style 'european)
This can be found from the docstring of diary-block:
(diary-block M1 D1 Y1 M2 D2 Y2 &optional MARK)
Block diary entry.
Entry applies if date is between, or ...
Looking at the souce code reveals, that Org uses calendar functions to calculate that. ... You need to change calendar-iso-from-absolute
Try following modification, this will affect calendars week calculation and with that org-modes. You can see the result, if you activate calendars week number view.
(defun calendar-iso-from-absolute (date)
You can compute arbitrary date strings by overriding display-time-string-forms.
The documentation says this:
List of expressions governing display of the time in the mode line.
For most purposes, you can control the time format using
`display-time-format' which is a more standard interface.
This expression is a list of expressions that can ...
I'm the author of org-journal. As Rusi pointed out, the problem is that Emacs 23 does not support setq-local. You can backport setq-local from Emacs 24 to 23, but you'll have to delete or recreate org-journal.elc for the backport to take effect.
Nevertheless, I have removed the dependence on setq-local in the latest version of org-journal. Org-journal is ...