diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2025-03-16 21:40:38 +0100 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2025-03-16 21:40:38 +0100 |
| commit | 7604c5aeef469e51e8dd19a514b883e415f462fb (patch) | |
| tree | 3f44485cc6fc1181fc9200266e796607b5bc3538 /config/emacs/gtd.el | |
| parent | b9d7af835c5e1cecf11f852dd033f48fac829d07 (diff) | |
More Emacs Customization
Refactored init.el, got rid of modal editing and added a few more
useful packages. Ported code to `lexical-binding: t`.
Diffstat (limited to 'config/emacs/gtd.el')
| -rw-r--r-- | config/emacs/gtd.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/config/emacs/gtd.el b/config/emacs/gtd.el index 9733229..2c910a4 100644 --- a/config/emacs/gtd.el +++ b/config/emacs/gtd.el @@ -1,13 +1,13 @@ -;;; +;;; -*- lexical-binding: t -*- ;;; GTD Org-mode Setup <https://www.labri.fr/perso/nrougier/GTD/index.html> ;;; (require 'org) -;;; Configure Org-mode +;; Configure Org-mode (setq org-directory "~/Documents/Org") -;;; Org capture templates +;; Org capture templates (setq org-capture-templates `( ("i" "Inbox" entry (file "inbox.org") @@ -17,7 +17,7 @@ (interactive) (org-capture nil "i")) -;;; Org agenda +;; Org agenda (setq org-agenda-files (list "inbox.org" "projects.org") org-agenda-hide-tags-regexp "." @@ -39,13 +39,13 @@ ((org-agenda-overriding-header "\nCompleted today\n"))))))) (add-hook 'org-agenda-mode-hook 'delete-other-windows) -;;; Org refiling +;; Org refiling (setq org-refile-targets '(("projects.org" :regexp . "\\(?:\\(?:Note\\|Task\\)s\\)")) org-refile-use-outline-path 'file org-outline-path-complete-in-steps nil) -;;; Org todo +;; Org todo (setq org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "HOLD(h)" "|" "WONTFIX(x)" "DONE(d)")) org-log-done 'time) @@ -56,7 +56,7 @@ (org-entry-put nil "ACTIVATED" (format-time-string "[%Y-%m-%d]")))) (add-hook 'org-after-todo-state-change-hook #'gtd-log-todo-next-creation-date) -;;; Key bindings +;; Key bindings (define-key global-map (kbd "C-c c") 'org-capture) (define-key global-map (kbd "C-c i") 'gtd-org-capture-inbox) (define-key global-map (kbd "C-c a") 'org-agenda) |
