org updates
authorJames Richardson <james@jamestechnotes.com>
Fri, 26 Jan 2018 21:02:44 +0000 (16:02 -0500)
committerJames Richardson <james@jamestechnotes.com>
Fri, 26 Jan 2018 21:02:44 +0000 (16:02 -0500)
.emacs.d/config/load-paths.el
.emacs.d/config/org.el

index ff8f5db2a00c3e54c6ea653f3b68f1883207f00b..9608662a4b7f92cfcaa12d3a6917ee2e3500ca03 100644 (file)
@@ -57,3 +57,7 @@
 ;;; org-jira
 (when (file-directory-p "~/src/org-jira")
   (add-to-list 'load-path (file-truename "~/src/org-jira")))
+
+;;; emacs-request
+(when (file-directory-p "~/src/emacs-request")
+  (add-to-list 'load-path (file-truename "~/src/emacs-request")))
index 28f949fb39353db415324fa07112a7c2d20ac618..8f0673f654fdee5154f81ef6eb282dd9757a9357 100644 (file)
@@ -14,7 +14,7 @@
             (org-defkey org-mode-map "\C-c[" 'undefined)
             (org-defkey org-mode-map "\C-c]" 'undefined))
           'append)
-
+(require 'ox-latex)
 ;; I want to get all org files in a directory
 ;; http://stackoverflow.com/questions/17215868/recursively-adding-org-files-in-a-top-level-directory-for-org-agenda-files-take
 
@@ -76,6 +76,7 @@
 (setq org-todo-keywords
       '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!/!)")
        (sequence "NEW" "IN-PROGRESS" "|" "DONE") ;; jira
+       (sequence "TASK" "|" "DONE") ;; will this work for others?
         (sequence "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE")))
 
 (setq org-todo-keyword-faces
@@ -88,7 +89,8 @@
               ("HOLD" :foreground "magenta" :weight bold)
               ("CANCELLED" :foreground "forest green" :weight bold)
               ("MEETING" :foreground "forest green" :weight bold)
-              ("PHONE" :foreground "forest green" :weight bold))))
+              ("PHONE" :foreground "forest green" :weight bold)
+             ("TASK" :foreground "orange" :weight bold))))
 
 (setq org-use-fast-todo-selection t)
 (setq org-treat-S-cursor-todo-selection-as-state-change nil)
                             ("WORK" . ?W)
                             ("NOTE" . ?n)
                             ("WIKI" . ?w)
+                           ("ONE" . ?O)
+                           ("TEAM" . ?T)
                             ("FLAGGED" . ??))))
 
 (setq org-fast-tag-selection-single-key (quote expert))
               ("h" "Habits" tags-todo "STYLE=\"habit\""
                ((org-agenda-overriding-header "Habits")
                 (org-agenda-sorting-strategy
-                 '(todo-state-down effort-up category-keep))))
+                 '(todo-state-down priority-down effort-up category-keep))))
               (" " "Agenda"
                ((agenda "" nil)
                 (tags "REFILE"
                            ((org-agenda-overriding-header "Stuck Projects")
                             (org-agenda-skip-function 'bh/skip-non-stuck-projects)
                             (org-agenda-sorting-strategy
-                             '(category-keep))))
+                             '(priority-down category-keep))))
                 (tags-todo "-CANCELLED/!NEXT"
                            ((org-agenda-overriding-header (concat "Project Next Tasks"
                                                                   (if bh/hide-scheduled-and-waiting-next-tasks
                             (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                             (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                             (org-agenda-sorting-strategy
-                             '(todo-state-down effort-up category-keep))))
+                             '(todo-state-down priority-down effort-up category-keep))))
                 (tags-todo "-HOLD-CANCELLED/!"
                            ((org-agenda-overriding-header "Projects")
                             (org-agenda-skip-function 'bh/skip-non-projects)
                             (org-tags-match-list-sublevels 'indented)
                             (org-agenda-sorting-strategy
-                             '(category-keep))))
+                             '(priority-down category-keep))))
                 (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
                            ((org-agenda-overriding-header (concat "Project Subtasks"
                                                                   (if bh/hide-scheduled-and-waiting-next-tasks
                             (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                             (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                             (org-agenda-sorting-strategy
-                             '(category-keep))))
+                             '(priority-down category-keep))))
                 (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
                            ((org-agenda-overriding-header (concat "Standalone Tasks"
                                                                   (if bh/hide-scheduled-and-waiting-next-tasks
                             (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                             (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                             (org-agenda-sorting-strategy
-                             '(category-keep))))
+                             '(priority-down category-keep))))
                 (tags-todo "-CANCELLED+WAITING|HOLD/!"
                            ((org-agenda-overriding-header (concat "Waiting and Postponed Tasks"
                                                                   (if bh/hide-scheduled-and-waiting-next-tasks
@@ -756,6 +760,15 @@ Skip project and sub-project tasks, habits, and loose non-project tasks."
 ;; Show all agenda dates - even if they are empty
 (setq org-agenda-show-all-dates t)
 
+;; let's try priorities
+;; org defaults to a b c, with b being the default.
+;; let's try a b c d e f g h i, or am I being silly.
+;; high is a b c, medium is d e f, low is g h i
+(setq org-enable-priority-commands t
+      org-default-priority ?E
+      org-lowest-priority ?I)
+
+
 ;; Sorting order for tasks on the agenda
 (setq org-agenda-sorting-strategy
       (quote ((agenda habit-down time-up user-defined-up priority-down effort-up category-keep)
@@ -954,17 +967,18 @@ Late deadlines first, then scheduled, then non-late deadlines"
 ;;(setq org-latex-format-toc-function 'org-latex-no-toc)
 ;; now part of org-mode (require 'org-special-blocks)
 
-; use minted
+                                       ; use minted
+(require 'ox-latex)
 (add-to-list 'org-latex-packages-alist '("" "minted"))
 (setq org-latex-listings 'minted)
-(setq org-latex-minted-options
+(setq org-latxex-minted-options
       '(("frame" "single")
         ("fontsize" "\\scriptsize")
        ;("xleftmargin" "50pt")
        ;("xrightmargin" "50pt")
         ("linenos" "")))
 ;; cywin doesn't have texi2dvi
-(if (eq system-type 'cygwin)
+(if (eq system-type 'gnu/linux)
     (setq org-latex-pdf-process '("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
                                  "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
                                  "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
@@ -1310,7 +1324,7 @@ Late deadlines first, then scheduled, then non-late deadlines"
       ;;jiralib-wsdl-descriptor-url "https://tools.lowes.com/jira/rpc/soap/jirasoapservice-v2?wsdl"
       org-jira-working-dir "~/doc/org/lowes"
       org-jira-use-status-as-todo t)
-;;(require 'org-jira nil 'noerror)
+(require 'org-jira nil 'noerror)
 (setq request-message-level 'debug
       request-log-level 'debug)