emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Brady Trainor <algebrat@uw.edu>
To: emacs-orgmode@gnu.org
Subject: Re: org-agenda List Items with Priority A
Date: Fri, 23 May 2014 15:37:47 -0700	[thread overview]
Message-ID: <871tvkf7es.fsf@uw.edu> (raw)
In-Reply-To: 871tvkvcle.fsf@quasar.esben-stien.name


(my first `follow-up' from GNUS)

I am trying to reduce the amount of custom-commands I use, so that my
use of org-mode can evolve to be more adaptive and take more advantage
of defaults. 

The functions below are for DONE items, but I'm sure you could tweak
them to apply to priority. 

They allow you to use the hotkeys in agenda-view, via the `org-defkey'
function (which is why I have to "require 'org-agenda"). 

With M-=, I get the result of `C-u =' with fewer keystrokes, at which
point I can type DONE for quick removal. You could probably try `= #a'
for quick filtering. (The `=' hotkey already exists in your default
agenda-view.)

With C-=, I toggle whether DONE items appear quickly (the second source
block below). 

#+BEGIN_SRC emacs-lisp
(require 'org-agenda)
(defun org-agenda-filter-by-regexp-inverse ()
  (interactive)
  (org-agenda-filter-by-regexp '(4)))
(org-defkey org-agenda-mode-map "\M-=" 'org-agenda-filter-by-regexp-inverse)
#+END_SRC

* toggle "skip timestamp if done"

#+BEGIN_SRC emacs-lisp
(require 'org-agenda)
(defun toggle-org-agenda-skip-timestamp-if-done ()
  (interactive)
  (cond ((eq org-agenda-skip-timestamp-if-done nil)
         (setq org-agenda-skip-timestamp-if-done t))
        ((eq org-agenda-skip-timestamp-if-done t)
         (setq org-agenda-skip-timestamp-if-done nil)))
        (org-agenda-redo))
(org-defkey org-agenda-mode-map [?\C-=] 'toggle-org-agenda-skip-timestamp-if-done)
#+END_SRC



{{{ Brady }}}



I am self-proclaimed newb, so if anyone has any org-defaults suggestions
or coding style, please let me know. (Learning "autoloads" is on my
list, so maybe that is one thing, but I recently installed a new linux,
and Emacs is opening super fast.) 

      parent reply	other threads:[~2014-05-23 22:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-23 13:39 org-agenda List Items with Priority A Esben Stien
2014-05-23 13:45 ` Bastien
2014-05-23 18:29   ` Sebastien Vauban
2014-05-23 18:57     ` Esben Stien
2014-05-23 19:17     ` Bastien
2014-05-23 22:37 ` Brady Trainor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871tvkf7es.fsf@uw.edu \
    --to=algebrat@uw.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).