summaryrefslogtreecommitdiff
path: root/dotfiles/.emacs.d
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2016-03-21 18:02:30 -0400
committerDavid Thompson <dthompson2@worcester.edu>2016-03-21 18:03:06 -0400
commitbfd7ac2c92bd66486a37aa92d729559e6f061996 (patch)
treecdbde789db0dc516f75b3984a213bbe5907b85a3 /dotfiles/.emacs.d
parentbaea7f72dbedaa16a1b330e4cb4c2ad2d3f57596 (diff)
emacs: Tweak org-mode sorting.
Diffstat (limited to 'dotfiles/.emacs.d')
-rw-r--r--dotfiles/.emacs.d/init.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/dotfiles/.emacs.d/init.el b/dotfiles/.emacs.d/init.el
index ba636ba..60bc40f 100644
--- a/dotfiles/.emacs.d/init.el
+++ b/dotfiles/.emacs.d/init.el
@@ -407,15 +407,15 @@ indentation."
(require 'ox-beamer)
-(defun org-sort-by-todo-and-priority ()
- "Sort org entries first by TODO status, and then by priority."
+(defun org-sort-by-priority-and-todo ()
+ "Sort org entries first by priority, and then by TODO status."
(interactive)
- (org-sort-entries nil ?o)
- (org-sort-entries nil ?p))
+ (org-sort-entries nil ?p)
+ (org-sort-entries nil ?o))
(add-hook 'org-mode-hook
(lambda ()
- (local-set-key (kbd "C-c o") 'org-sort-by-todo-and-priority)))
+ (local-set-key (kbd "C-c o") 'org-sort-by-priority-and-todo)))
;;;
;;; RSS