14

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::...


12

If you're looking for a Google calendar like tool built into Emacs, take a look at org-mode. To set up, just add (require 'org) (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 <2014-12-18> * TODO A Task SCHEDULED: <2014-12-19> * This ...


9

You can just type a time, eg 9am, or 1:30pm in the minibuffer.


9

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 ...


8

calendar-mode-map is void since it's not loaded yet: (eval-after-load "calendar" `(progn (define-key calendar-mode-map (kbd "M-]") 'calendar-forward-month) (define-key calendar-mode-map (kbd "M-[") 'calendar-backward-month)))


7

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 ...


6

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 ...


5

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 ...


4

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-...


4

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' ...


4

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.


3

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 ...


3

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.


3

(evil-set-initial-state 'calendar-mode 'emacs) should do what you want.


3

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.);...


3

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 ...


3

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 ...


2

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 ...


2

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 ...


2

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 ...


2

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 : '(holiday-bahai-holidays nil) '(holiday-hebrew-holidays nil) '(holiday-islamic-holidays nil) Tell agenda to display events from calendar diary: '(org-agenda-include-diary t) Result : holidays will ...


2

If you want a two-way sync with google calender, perhaps you should try org-caldav (https://github.com/dengste/org-caldav)? I have been using it for some time with mixed, mostly positive, results.


2

The Emacs Wiki node on calendar localization explains how to do this. For example, it shows that, for Italian, you would want to do: (setq calendar-week-start-day 1 calendar-day-name-array ["Domenica" "Lunedì" "Martedì" "Mercoledì" "Giovedì" "Venerdì" "Sabato"] calendar-month-name-array ["Gennaio" "...


2

Have you enabled org-toggle-time-stamp-overlays via C-c C-x C-t? With this enabled you cannot place the cursor onto a timestamp anymore, only before or after.


2

As stated by @Arash Esbati, the problem was indeed due to the fact that pdflatex does not support \special{landscape} One solution is to replace the aforementioned code with a call to the geometry package that works with pdflatex. I chose to hardcode a let-bound value for cal-tex-preamble-extra that takes effect if the LANDSCAPE argument is used. I ...


2

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, ...


2

You can use C-h f (describe-function)'s "completion" feature to discover function that you don't know yet, e.g., enter calendar-persian in the minibuffer then type TAB, it will show all functions with that prefix. (calendar-persian-date-string) => "Xordad 10, 1396" (calendar-persian-from-absolute (calendar-absolute-from-gregorian (calendar-...


2

I use org-mode together with https://github.com/dengste/org-caldav to sync with google calendar. The readme of org-caldav states that Nextcloud is regularly tested, so it sounds like it would work. Below are the commands I use (from bash) to install my packages from scratch, including the newest org-mode and org-caldav. Warning! The rm command deletes all ...


2

The commando calendar-list defined in the following elisp code delivers the list as you want it in the buffer *calendar-list*. The code is split into two functions. The function my-date-list generates a lisp list of strings for the dates. One can specify the format for the strings. One can also specify month boundaries with corresponding format string to ...


2

(defun calendar-insert-date () "Capture the date at point, exit the Calendar, insert the date." (interactive) (seq-let (month day year) (save-match-data (calendar-cursor-to-date)) (calendar-exit) (insert (format "%d-%02d-%02d" year month day)))) (define-key calendar-mode-map (kbd "RET") 'calendar-insert-date) To insert a date at point, use M-...


Only top voted, non community-wiki answers of a minimum length are eligible