Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
23

If org-agenda-start-on-weekday is set to an integer (by default it's set to 1, corresponding to Monday), and org-agenda-span is set to either 'week or 7, org will always start the agenda on the day specified by org-agenda-start-on-weekday. So to always start yesterday, you must set org-agenda-start-day to "-1d" and do one of the following: Set org-agenda-...


17

You can use the function file-expand-wildcards to get all the files matching the wildcard add them to org-agenda-files variable. Something like the following (setq org-agenda-files (append '("~/doc/notes" "~/.emacs.d") (file-expand-wildcards "~/prj/*/doc")))


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


15

This can be accomplished using org-agenda-sticky. See the Org-Manual - Agenda Dispatcher for details. * :: Toggle sticky agenda views. By default, Org maintains only a single agenda buffer and rebuilds it each time you change the view, to make sure everything is always up to date. If you switch between views often and the build time bothers you, ...


12

You can use < from the agenda menu to restrict the current agenda call to the buffer that the agenda was invoked from. To restrict to that file for more than one call, you can use C-c C-x < (org-agenda-set-restriction-lock). See (info "(org) Agenda files") for more information.


11

See org-depend.el. It does exactly what you want. Rather than repeating the documentation here you can see docs and examples at http://orgmode.org/worg/org-contrib/org-depend.html


11

In order for org-mode to show events scheduled or with a deadline in the agenda-view, the org-file containing these events must be listed in the variable org-agenda-files. While one can customize this variable, the more practical way is to invoke the function org-agenda-file-to-front, which is commonly bound to C-c [. For further details see the org-mode ...


10

Clock tables support formatting options: #+BEGIN: clocktable :formatter my-org-clocktable-notodo #+END: Here's a function which removes TODO and DONE keywords from headlines before handing the data off to the default formatting function: (defun my-org-clocktable-notodo (ipos tables params) (cl-loop for tbl in tables for entries = (nth 2 tbl) ...


10

The default value for the variable org-agenda-repeating-timestamp-show-all is t -- i.e., "Non-nil means show all occurrences of a repeating stamp in the agenda." The variable can be set to "a list of strings" to "only show occurrences of repeating stamps for these TODO keywords." When the variable is set to nil, "only one occurrence is shown, either today ...


10

This will create a column in your clocktable report that sums the hours from columns 3 and 4, and then another column that shows you the round number of pomodoros that took up. (setq org-agenda-clockreport-parameter-plist '(:link t :maxlevel 2 :formula "$5=$3+$4;t::$6=ceil($5*60/25);N")) If you don't want in-between columns, here's a totally ...


9

You want org-agenda-exit, conveniently bound to x by default in the agenda view Like `org-agenda-Quit', but kill any buffers that were created by the agenda. Org buffers visited directly by the user will not be touched. I found this using describe-mode.


9

View the EntryText in Agenda view by pressing "v" then "E". You cannot interact with the checkboxes, but you can view them this way. Alternatively, "follow mode" (press "F" in Agenda view) might also help you get what you want. The checkboxes won't be in the Agenda, but you have easy access to them.


9

The "--1d" style delay (which only delays the first occurrence of a repeating event) is useful when you will be unable to complete a repeating task on the scheduled day (because you're out of town, for example) but don't want to reschedule the other occurrences. If you are have * Do This SCHEDULED: <2015-01-01 +1m> to do something on the first ...


9

You can use org-show-todo-tree to get a sparse tree view of the current buffer's TODO items. It's bound to C-c / t by default.


8

Try customizing org-agenda-prefix-format. This can be used to tweak how various kinds of items (including TODOs) are displayed in agenda views. In particular, you can use %l in the todo format to prefix the item with a number of spaces corresponding to its level in the hierarchy. Another option would be to use %b to include a 'breadcrumb' trail for each ...


8

Yes, that's possible: (setq org-agenda-custom-commands '(("O" tags-todo "OFFICE") ("B" tags-todo "ERRANDS") ("H" tags-todo "HOME") ("M" tags-todo "-OFFICE-ERRANDS-HOME"))) There's two things at work here: - negates a search term. For example, -OFFICE matches headlines that are not tagged with :OFFICE:. Search terms can ...


8

You can create a custom agenda view which sets org-agenda-skip-function using org-agenda-skip-entry-if. Something like this: (setq org-agenda-custom-commands '(("c" . "My Custom Agendas") ("cu" "Unscheduled TODO" ((todo "" ((org-agenda-overriding-header "\nUnscheduled TODO") (org-agenda-skip-function '(...


8

The variable you want is org-agenda-hide-tags-regexp Regular expression used to filter away specific tags in agenda views. This means that these tags will be present, but not be shown in the agenda line. Secondary filtering will still work on the hidden tags. Nil means don’t hide any tags. A typical setting is (setq org-agenda-hide-tags-regexp "...


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


7

You could bind org-agenda-files dynamically to the current buffer's file and call org-todo-list from there: (defun org-todo-list-current-file (&optional arg) "Like `org-todo-list', but using only the current buffer's file." (interactive "P") (let ((org-agenda-files (list (buffer-file-name (current-buffer))))) (if (null (car org-agenda-files)) ...


7

By default org-agenda-log-mode shows only closed and clock items. To show done recurring tasks add state symbol to the org-agenda-log-mode-items variable, like so: (setq org-agenda-log-mode-items '(closed clock state)) You will now see done recurring tasks in your org-agenda by pressing l.


7

Short answer: Press '!'. C-h m in the agenda opens a help buffer containing the line ! org-agenda-toggle-deadlines


7

The contents of {} in an agenda command are regular expressions. So something like PRIORITY={\"B\"|\"A\"} will only match if PRIORITY is "A" or "B", including the quotes. You also need more escaping in you regex (\\| instead of |). A regex won't work if you don't pay the slash tax. The correct search is +PRIORITY={A\\|B}. You can also simplify things a ...


7

You are quoting those lists, so they won't actually do anything. Try removing the leading "'"s like so: ;; This is for org-mode agenda view activation (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) ;; This is for key bindings to invoke agenda mode (see line-2) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (...


7

The command you are calling with your binding is org-agenda-do-date-later. As of my org version, describe-function tells me that there is no docstring for that function: (org-agenda-do-date-later ARG) Not documented. However, it does take an argument. If you follow the link to the source code for that function, it indicates that, if you pass a ...


7

The year (as well as day, month, week etc.) can take a prefix argument specifying the period you want to view. To view a specific year (e.g. 2017) pass the year using C-u while in the agenda: C-u 2017 v y. This works by calling the function org-agenda-year-view: (org-agenda-year-view &optional YEAR) Switch to yearly view for agenda. With ...


7

The custom function diary-list-day-of-month (set forth below) can be used to create a repeating org-mode task or to create a diary entry that will appear on the *Calendar* and/or in the *Org Agenda* buffer (if org-agenda-include-diary is t). ;;; ORG-MODE: * My Task ;;; SCHEDULED: <%%(diary-last-day-of-month date)> ;;; DIARY: %%(diary-...


6

In this situation, I find that the best way to figure out what's going on into is to visit my ~/.emacs.d/ and run rgrep. Searching your configs The following snippet, taken from here, makes sure that rgrep doesn't go into the elpa/ subdir (since you're sure to find dozens of useless hits in there). (eval-after-load 'grep '(progn (add-to-list 'grep-...


6

Try customizing org-agenda-show-current-time-in-grid, which defaults to t.


6

Just select the entire buffer and do C-c^ (it runs the command org-sort). It will prompt you for the type of sorting. To understand different types of sorting see the documentation of org-sort-entries (M-xorg-sort-entriesRET). I am quoting it here for completeness Sort entries on a certain level of an outline tree. If there is an active region, the ...


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