Updates for new version of org-projectile
This commit is contained in:
parent
eecd210e51
commit
87d2be1b62
2
.gitignore
vendored
2
.gitignore
vendored
@ -8,7 +8,6 @@ backups
|
|||||||
eshell
|
eshell
|
||||||
url
|
url
|
||||||
bookmarks
|
bookmarks
|
||||||
|
|
||||||
elpa
|
elpa
|
||||||
.python-environments/
|
.python-environments/
|
||||||
tramp
|
tramp
|
||||||
@ -23,3 +22,4 @@ skewer-cache
|
|||||||
.org-id-locations
|
.org-id-locations
|
||||||
jabber-avatar-cache
|
jabber-avatar-cache
|
||||||
this-machine.el
|
this-machine.el
|
||||||
|
recentf
|
16
init.el
16
init.el
@ -267,7 +267,13 @@ buffer is not visiting a file."
|
|||||||
(defun growl-notify (title message)
|
(defun growl-notify (title message)
|
||||||
(shell-command (format "grownotify -t %s -m %s" 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)
|
(defun project-root-of-file (filename)
|
||||||
"Retrieves the root directory of a project if available.
|
"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
|
(progn
|
||||||
(diminish 'magit-auto-revert-mode)
|
(diminish 'magit-auto-revert-mode)
|
||||||
(use-package magit-filenotify
|
(use-package magit-filenotify
|
||||||
;; Seems like OSX does not properly this.
|
;; Seems like OSX does not support filenotify.
|
||||||
:disabled t
|
:disabled t
|
||||||
:ensure t
|
:ensure t
|
||||||
:if (emacs24_4-p)
|
: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")
|
`("g" "GTD Todo" entry (file+headline ,org-gtd-file "Tasks")
|
||||||
"* TODO %?\n"))
|
"* TODO %?\n"))
|
||||||
|
|
||||||
|
|
||||||
(defun org-insert-habit ()
|
(defun org-insert-habit ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(org-insert-todo-heading nil)
|
(org-insert-todo-heading nil)
|
||||||
(org-make-habit))
|
(org-make-habit))
|
||||||
|
|
||||||
(add-to-list 'org-capture-templates (org-projectile:project-todo-entry))
|
(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"))
|
||||||
(add-to-list 'org-modules 'org-habit)
|
|
||||||
|
|
||||||
(let ((this-week-high-priority
|
(let ((this-week-high-priority
|
||||||
'(tags-todo "+PRIORITY=\"A\"+DEADLINE<\"<+1w>\"DEADLINE>\"<+0d>\""
|
'(tags-todo "+PRIORITY=\"A\"+DEADLINE<\"<+1w>\"DEADLINE>\"<+0d>\""
|
||||||
|
Loading…
Reference in New Issue
Block a user