0

I configured my org-mode through use-package :init and it works fine, except in one case. If I restart emacs and reopen a buffered .org file, my settings won't be applied until I do org-mode-restart, or until I kill the buffer and reopen it.

For exemple, if I use C-c C-t before restarting, my task will cycle through TODO, DONE and no tag. Once I have reloaded, I have access to my "STARTED", "WAITING", "DELEGATED" etc states.

Here is my org-mode config:

(use-package org
  :init
  (setq org-default-notes-file "~/.emacs.d/org/notes.org"
        org-use-speed-commands t
        org-image-actual-width 550
        org-highlight-latex-and-related '(latex script entities)
        org-refile-targets '(
          (nil :maxlevel . 2)
          (org-agenda-files :maxlevel . 2))
        org-outline-path-complete-in-steps nil         ; Refile in a single go
        org-refile-use-outline-path t                  ; Show full paths for refiling
        org-use-fast-tag-selection nil
        org-use-fast-todo-selection t
        ;; https://www.gnu.org/software/emacs/manual/html_node/org/Tracking-TODO-state-changes.html
        org-todo-keywords
          '((sequence "TODO(t)" "STARTED(s@)" "WAITING(w@)" "DELEGATED(l@)" "|" "DONE(d@)" "DEFERRED(f@)" "CANCELLED(x@)"))
        org-log-into-drawer "LOGBOOK"
        org-agenda-span 14
        org-agenda-show-all-dates t
        org-agenda-skip-deadline-if-done t
        org-agenda-skip-scheduled-if-done t
        org-agenda-start-on-weekday nil
        org-agenda-start-day "0d"
        org-reverse-note-order t
        org-agenda-custom-commands
          (quote (("d" todo "DELEGATED" nil)
       ("c" todo "DONE|DEFERRED|CANCELLED" nil)
       ("w" todo "WAITING" nil)
       ("W" agenda "" ((org-agenda-span 21)))
       ("A" agenda ""
        ((org-agenda-skip-function
          (lambda nil
        (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\\]")))
         (org-agenda-ndays 1)
         (org-agenda-overriding-header "Today's Priority #A tasks: ")))
       ("u" alltodo ""
        ((org-agenda-skip-function
          (lambda nil
        (org-agenda-skip-entry-if (quote scheduled) (quote deadline)
                      (quote regexp) "\n]+>")))
         (org-agenda-overriding-header "Unscheduled TODO entries: ")))))
        org-capture-templates
          (quote (("t" "Todo" entry (file "~/.emacs.d/org/todo.org")
                   "* TODO %?\n%U")
                  ("n" "Note" entry (file "~/.emacs.d/org/notes.org")
                   "* %?\n%U")))))

Seems like org-mode uses default settings and waits for I don't know what to use my settings.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.