Hot answers tagged

15

There is a chapter on the weekly/daily agenda in the org-mode manual that tells you how to do this (modified for brevity; emphasis mine): If you are using the diary only for sexp entries and holidays, it is faster to not use (setq org-agenda-include-diary t), but instead to copy or even move the entries into an Org file. Org mode evaluates diary-style ...


6

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

smtpmail-send-it: Sending failed: 530 5.7.0 Must issue a STARTTLS command first. u9sm80344949wjy.37 - gsmtp You did not start tls, you need it to open a TLS connection to your gmail account. Not a direct answer to your request, but this is an Emacs configuration for sending mails with gmail. The gnutls package should be installed system wide ex: apt ...


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


3

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

The problem was in my init file. I have my diary file set for a custom location: ;; Diary (setq diary-file "E:/emacs/diary/diary") This part of my init file appeared AFTER the part of my init file that calls for the appointment activations and checks. Emacs was trying to check as soon as it hit this: ;; appointments (require 'appt) (appt-activate 1) ...


2

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


1

How about modifying the last line of your custom diary sexp so that it becomes an and statement that checks to ensure that the DATE is not a member of your excluded dates?: (and [YOUR-SEXP-RESULT-THAT-IS-NON-NIL] (not (member DATE '((2 28 2017) (5 1 2017) (5 31 2017))))) Granted, of course, you will ...


1

The doc-string for diary-insert-block-entry is insufficient (even for an intermediate Emacs user such as myself) and I needed to actually visit the code with M-x find-function to see what was going on. I initially tried selecting a region with shift-arrow, but that didn't work. Then, I tried selecting a region with a mouse in all different shapes and forms,...


1

Have you looked at org-sort-entries? That can sort a subtree of org items by a variety of means -- it prompts you if you call this interactively. You'd have to manually call that rather than inserting them in your preferred order. It would be reasonably straightforward to automate that sorting on a hook if you required.


1

I was on a similar boat. Assuming that you have your favorite calendar on google, Go to google calendar and download i.e. click on "Export Calendars" Unzip calendar, which should give you a .ics file In your .emacs file, do the following (icalendar-import-file "~/wherethefileis/calendar.ics" "~/diary") You should comment out the above ...


1

You can use e.g. netherlands-holidays as a template. Afterwards, this is what I do: (setq calendar-holidays (append calendar-holidays holiday-netherlands-holidays))


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