Projects managements with emacs
Table of Contents
Description
The following notebook aims to show how to implement a "Getting thing done" (GTD) workflow in emacs.
Set-up indications
To load the current file,
add
site-lisptoload-path;; (add-to-list 'load-path (concat user-emacs-directory "site-lisp")) (add-to-list 'load-path (file-name-concat (getenv "HOME") ".emacs.d" "site-lisp"))then, load the configuration file
(load "projects-management" t t)
Configurations
;;; -*- lexical-binding: t; -*-
Default directory based on GNU/linux user directory
(defvar user/projects-directory (file-name-concat (getenv "HOME") "Projects") "Location of the 'Projects' directory. Default : $HOME/Projects")
Automatically add project to project list
(require 'project)
(project-remember-projects-under user/projects-directory nil)
Automatically add org files from project to org-agenda
;; must be lauched after projects are present in projects.eld
(dolist (project project--list)
(let* ((project-path (car project))
(gtd-file-project-path (file-name-concat project-path "gtd.org")))
(if (file-exists-p gtd-file-project-path)
(progn
(add-to-list 'org-agenda-files gtd-file-project-path)
(message "Added %s to 'org-agenda-files'." gtd-file-project-path)))
))