From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: Re: org-agenda List Items with Priority A Date: Fri, 23 May 2014 15:37:47 -0700 Message-ID: <871tvkf7es.fsf@uw.edu> References: <871tvkvcle.fsf@quasar.esben-stien.name> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wny6T-0008Vk-7Y for emacs-orgmode@gnu.org; Fri, 23 May 2014 18:38:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wny6L-0004xt-Oi for emacs-orgmode@gnu.org; Fri, 23 May 2014 18:38:17 -0400 Received: from plane.gmane.org ([80.91.229.3]:36503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wny6L-0004xo-I9 for emacs-orgmode@gnu.org; Fri, 23 May 2014 18:38:09 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wny6I-0006Pi-5J for emacs-orgmode@gnu.org; Sat, 24 May 2014 00:38:06 +0200 Received: from c-76-22-40-63.hsd1.wa.comcast.net ([76.22.40.63]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 May 2014 00:38:06 +0200 Received: from algebrat by c-76-22-40-63.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 May 2014 00:38:06 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org (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.)