diff options
author | David Thompson <dthompson2@worcester.edu> | 2016-02-23 20:46:04 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2016-02-23 20:46:04 -0500 |
commit | b0b0ba51c56567f05b44e15008e297985369a436 (patch) | |
tree | 361f36f73f5ca825119489b3c8be2b20334e343e | |
parent | 800fed4277f39c97ebd22546e43f159c7b906477 (diff) |
emacs: Add org-mode sorting helper.
-rw-r--r-- | dotfiles/.emacs.d/init.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dotfiles/.emacs.d/init.el b/dotfiles/.emacs.d/init.el index 2acbaba..ba636ba 100644 --- a/dotfiles/.emacs.d/init.el +++ b/dotfiles/.emacs.d/init.el @@ -407,6 +407,16 @@ indentation." (require 'ox-beamer) +(defun org-sort-by-todo-and-priority () + "Sort org entries first by TODO status, and then by priority." + (interactive) + (org-sort-entries nil ?o) + (org-sort-entries nil ?p)) + +(add-hook 'org-mode-hook + (lambda () + (local-set-key (kbd "C-c o") 'org-sort-by-todo-and-priority))) + ;;; ;;; RSS ;;; |