Updates for new version of org-projectile

This commit is contained in:
Ivan Malison 2014-12-09 19:31:59 -08:00
parent eecd210e51
commit 87d2be1b62
2 changed files with 13 additions and 7 deletions

2
.gitignore vendored
View File

@ -8,7 +8,6 @@ backups
eshell
url
bookmarks
elpa
.python-environments/
tramp
@ -23,3 +22,4 @@ skewer-cache
.org-id-locations
jabber-avatar-cache
this-machine.el
recentf

16
init.el
View File

@ -267,7 +267,13 @@ buffer is not visiting a file."
(defun growl-notify (title message)
(shell-command (format "grownotify -t %s -m %s" title message)))
(defvar notify-function 'notification-center)
(defun notify-send (title message)
(shell-command (format "notify-send -u critical %s %s" title message)))
(defvar notify-function
(cond ((eq system-type 'darwin) 'notification-center)
((eq system-type 'gnu/linux) 'notify-send)))
(defun project-root-of-file (filename)
"Retrieves the root directory of a project if available.
@ -425,7 +431,7 @@ The current directory is assumed to be the project's root otherwise."
(progn
(diminish 'magit-auto-revert-mode)
(use-package magit-filenotify
;; Seems like OSX does not properly this.
;; Seems like OSX does not support filenotify.
:disabled t
:ensure t
:if (emacs24_4-p)
@ -602,14 +608,14 @@ The current directory is assumed to be the project's root otherwise."
`("g" "GTD Todo" entry (file+headline ,org-gtd-file "Tasks")
"* TODO %?\n"))
(defun org-insert-habit ()
(interactive)
(org-insert-todo-heading nil)
(org-make-habit))
(add-to-list 'org-capture-templates (org-projectile:project-todo-entry))
(add-to-list 'org-modules 'org-habit)
(add-to-list 'org-capture-templates (org-projectile:project-todo-entry "p"))
(add-to-list 'org-capture-templates (org-projectile:project-todo-entry "l" "* TODO %? %a\n"))
(let ((this-week-high-priority
'(tags-todo "+PRIORITY=\"A\"+DEADLINE<\"<+1w>\"DEADLINE>\"<+0d>\""