(require 'fcuny-org-custom) (require 'fcuny-vars) (use-package org-ml :ensure t) (use-package htmlize :ensure t) (use-package org :ensure t :commands (org-check-agenda-file org-protocol-capture) :mode (("\\.txt\\'" . org-mode)) :hook ((org-mode . org-indent-mode) (org-mode . org-hide-block-all) (org-mode . visual-line-mode) (org-capture-after-finalize . org-save-all-org-buffers) (org-capture-prepare-finalize . org-save-all-org-buffers)) :bind (("C-c c" . org-capture)) :config (defvar load-language-list '((emacs-lisp . t) (python . t) (shell . t))) (use-package ob-go :ensure t :init (cl-pushnew '(go . t) load-language-list)) (org-babel-do-load-languages 'org-babel-load-languages load-language-list) :custom (org-directory fcuny/org-directory) ;; hide emphasis markup (org-hide-emphasis-markers t) ;; when archiving, inherit the tags from the parent (org-archive-subtree-add-inherited-tags t) ;; display unicode characters (org-pretty-entities t) ;; log the time of completion (org-log-done 'time) (org-log-into-drawer t) (org-startup-indented t) (org-cycle-separator-lines 0) (org-startup-folded 'content) (org-todo-keywords '((type "TODO" "STARTED" "WAITING" "|" "DONE" "CANCELED"))) (org-todo-keyword-faces '(("TODO" . (:foreground "red" :weight bold)) ("STARTED" . (:foreground "red" :weight bold)) ("WAITING" . (:foreground "blue" :weight bold)))) ;; priorities (org-priority-start-cycle-with-default nil) ;; Start one over/under default value. (org-highest-priority ?A) (org-lowest-priority ?D) (org-default-priority ?C) ;; Ensures unset tasks have low priority. ;; refile (org-refile-use-cache nil) (org-refile-targets '((org-agenda-files . (:maxlevel . 1)))) (org-refile-use-outline-path 'file) (org-outline-path-complete-in-steps nil) (org-refile-allow-creating-parent-nodes 'confirm) ;; org babel related ;; prevent the conversion of spaces into tabs (necessary for Python code exports) (org-src-fontify-natively t) (org-src-preserve-indentation t) (org-edit-src-content-indentation t) ;; I want to follow links on RET (org-return-follows-link t) ;; some configurations for exporting document (org-export-with-toc nil) (org-export-with-section-numbers nil) ;; A few abbreviations I use regularly (org-link-abbrev-alist '(("src" . "~/workspace/%s") ("jira" . "https://jira.twitter.biz/browse/%s") ("ph" . "https://phabricator.twitter.biz/%s") ("go" . "http://go/%s"))) ;; entries (org-blank-before-new-entry nil) (org-blank-before-new-entry (quote ((heading . nil) (plain-list-item . nil)))) ;; see https://github.com/abo-abo/swiper/issues/986 (org-goto-interface 'outline-path-completion) (org-reverse-note-order t)) (use-package org-agenda :ensure nil :after (org) :bind (("C-c a" . org-agenda)) :custom (org-agenda-files `(,(expand-file-name "inbox.org" org-directory) ,(expand-file-name "notes.org" org-directory) ,(expand-file-name "tasks.org" org-directory) ,(expand-file-name "projects.org" org-directory) ,(expand-file-name "journal.org" org-directory))) (org-agenda-show-all-dates t) (calendar-week-start-day 1) (org-agenda-custom-commands nil) (org-agenda-start-on-weekday 1) :config (add-to-list 'org-agenda-custom-commands '("A" "Agenda" ((agenda "" ((org-agenda-span 'week))) (todo "TODO" ((org-agenda-overriding-header "To Refile") (org-agenda-files `(,(expand-file-name "inbox.org" org-directory))))) (todo "STARTED" ((org-agenda-overriding-header "In Progress") (org-agenda-files `(,(expand-file-name "projects.org" org-directory))))) (todo "WAITING" ((org-agenda-overriding-header "Blocked") (org-agenda-files `(,(expand-file-name "projects.org" org-directory))))) (todo "TODO" ((org-agenda-overriding-header "Projects") (org-agenda-files `(,(expand-file-name "projects.org" org-directory))))) (todo "TODO" ((org-agenda-overriding-header "One-off Tasks") (org-agenda-files `(,(expand-file-name "tasks.org" org-directory))) (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline 'scheduled)))))))) (use-package org-bullets :ensure t :after (org) :hook (org-mode . org-bullets-mode)) (use-package org-capture :ensure nil :after (org) :custom (org-capture-templates `(("t" "Todo" entry (file "inbox.org") "* TODO [#D] %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n") ("n" "Note" entry (file "inbox.org") "* NOTE %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n") ("j" "Journal" entry (file+olp+datetree "journal.org") "* %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n" :tree-type month)))) (provide 'fcuny-org)