Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Austin Frank <austin.frank <at> gmail.com>
Subject: Re: POLL: the 40 variables project
Newsgroups: gmane.emacs.orgmode
Date: Friday 30th January 2009 04:46:27 UTC (over 8 years ago)
On Thu, Jan 29 2009, Carsten Dominik wrote:

> - why you set the variable like this
> - if you feel that the default value of that variable
>   should be different
> - Any other comments you might what to give.

I have four org config files:  org-config.el, org-config-remember.el,
org-config-latex.el, and org-config-publish.  At the beginning of
org-config.el I load the other three.

From org-config.el:
--8<---------------cut here---------------start------------->8---
(add-hook 'org-mode-hook
          (lambda ()
            (imenu-add-to-menubar "Imenu")
            (local-set-key "\M-I" 'org-toggle-iimage-in-org)))

;;; general org functionality tweaks
(setq org-completion-use-ido t)

;;; customized list and outline behaviors
(setq org-empty-line-terminates-plain-lists t
      org-log-state-notes-insert-after-drawers t
      org-hide-leading-stars t)

;;; agenda customization
(setq org-agenda-files '("~/org/"))
(setq
 org-agenda-window-setup 'other-frame
 org-agenda-include-diary t
 org-agenda-ndays 7
 org-deadline-warning-days 14
 org-agenda-show-all-dates t
 org-agenda-skip-deadline-if-done t
 org-agenda-skip-scheduled-if-done t
 org-agenda-skip-timestamp-if-done t
 org-agenda-start-on-weekday nil
 org-stuck-projects
 '("+LEVEL=2+CATEGORY=\"PROJ\"|+CATEGORY=\"TASK\"/-DONE-CANCELED"
   ("NEXT" "WAITING")
   nil
   "")
 org-agenda-custom-commands
 '(("n" "NEXT items" todo "NEXT")
   ("w" "WAITING items" todo "WAITING")
   ("h" "at Home" tags "@[email protected][email protected]")
   ("w" "at Work" tags "@[email protected]")
   ("j" "Just Todos" todo "TODO")
   ("r" todo "TO-READ")
   ("z" todo "TO-SUMMARIZE")
   ("o" todo "TO-NOTE")
   ("f" todo "TO-FILE")
   ("p" "All reading tasks" ((todo "TO-READ")
                             (todo "TO-SUMMARIZE")
                             (todo "TO-NOTE")
                             (todo "TO-FILE")))))

(add-hook 'org-agenda-mode-hook '(lambda () (hl-line-mode 1))) 

;;; notes
(setq
 org-default-notes-file "~/notes.org"
 org-reverse-note-order t)

;;; org-mairix
(setq org-mairix-gnus-results-group 'nnmairix-default-group
      org-mairix-gnus-select-display-group-function)

;;; GTD setup
(setq
 org-todo-keywords
 '((sequence "TODO(t)" "NEXT(n)" "WAITING(w@/!)" "|" "DONE(d!)"
"SOMEDAY(s)")
   (sequence "TO-FIND(l)" "TO-READ(r)" "READ-NEXT(x)" "TO-SUMMARIZE(z)"
"TO-NOTE(o)" "TO-FILE(f)"  "|" "READ(e!)")
   (sequence "|" "CANCELED(c@/!)")))

(setq
 org-log-done t
 org-fast-tag-selection-single-key 'expert
 org-tags-match-list-sublevels t
 org-use-fast-todo-selection t
 org-fast-tag-selection-include-todo t)

(defun org-toggle-iimage-in-org ()
  "Display images in your org file"
  (interactive)
  (if (face-underline-p 'org-link)
      (set-face-underline-p 'org-link nil)
    (set-face-underline-p 'org-link t))
  (iimage-mode))

;; sometimes we need IDs?
(setq org-id-method 'uuidgen)

;; moving items
(setq
 org-refile-targets '((org-agenda-files . (:maxlevel . 3)))
 org-refile-use-outline-path 'file)
--8<---------------cut here---------------end--------------->8---
   
From org-remember.el:
--8<---------------cut here---------------start------------->8---
;; moving tasks
(setq org-remember-use-refile-when-interactive t)

;; remember
(setq
 org-remember-store-without-prompt t
 org-remember-default-headline "Unfiled"
 org-remember-templates
 '(("todo"
    ?t "* TODO %? %^G\n  CREATED:  %u\n%a\n"
    "~/org/todo.org"
    "Unscheduled tasks")
   ("deadline"
    ?d "* TODO %? %^G\n  DEADLINE:  %^T\nCREATED:  %u\n%a\n"
    "~/org/todo.org"
    "Unscheduled tasks")
   ("standing"
    ?s "* %?\n  CREATED:  %u\n%^T\n%a\n"
    "~/org/todo.org"
    "Standing obligations")
   ("event"
    ?e "* %? %^G\n  CREATED:  %u\n%^T\n%a\n"
    "~/org/todo.org"
    "One-time events")
   ("project todo"
    ?p "* TODO %? %^G\n  CREATED:  %u\n%a\n"
    "~/org/projects.org")
   ("note"
    ?n "* %u %? %^G"
    "~/org/notes.org"
    "Unfiled Notes")
   ("to-read"
    ?r "* TO-READ %a\n** Details\n%:author (%:year). %:title.  In
%:journal, %:pages.\n\n"
    "~/org/todo.org"
    "Reading")
   ("music"
    ?m "* %^{Song} by %^{Artist} on %^{Album}\n  %U %?%!%&"
    "~/org/notes.org"
    "Music")))
--8<---------------cut here---------------end--------------->8---

org-config-latex.el sets org-export-latex-classes, but I never actually
use the classes I defined now that there are #+ directives for LaTeX
export.

org-config-publish.el sets org-publish-project-alist, and

--8<---------------cut here---------------start------------->8---
(setq
  org-export-with-toc nil
  org-export-with-section-numbers nil)
--8<---------------cut here---------------end--------------->8---

Thanks,
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
 
CD: 4ms