emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Charles Cave's .emacs
@ 2009-03-31 13:03 Rustom Mody
  2009-04-01  1:04 ` Charles Cave
  2009-04-08 13:59 ` Rustom Mody
  0 siblings, 2 replies; 3+ messages in thread
From: Rustom Mody @ 2009-03-31 13:03 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: charles_cave


[-- Attachment #1.1: Type: text/plain, Size: 559 bytes --]

I am trying to use Charles Cave's 'How I use Emacs and Org-mode to implement
GTD' as a starter for myself.
So I took his .emacs and am in the process of making it my (org part of)
emacs setup
I found that some parts are relevant to org and some not.
So Ive split it into two files ccorg.el and otherccorg.el which Ive
attached.
ccorg.el + otherccorg.el should (hopefully!) add up to original Charles'
file
Whats the best require.. org-install etc sequence is not clear so Ive
removed that
And Ive put in some other comments preceded with RC: (Rustom Comment)

[-- Attachment #1.2: Type: text/html, Size: 652 bytes --]

[-- Attachment #2: ccorg.el --]
[-- Type: application/octet-stream, Size: 4029 bytes --]

;;   -*- mode: emacs-lisp  -*-
;; RC: changed it from lisp to emacs-lisp. Why lisp??
;; RC is Rustom comment
;; .emacs file     Selected entries from ~/.emacs.el
;; file of Charles Cave to run org-mode

(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))



(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.


  ;; RC: Well this is edited by hand... quite a bit  
 '(calendar-week-start-day 1)
 '(org-agenda-files '("c:/Charles/GTD/birthday.org" "c:/Charles/GTD/newgtd.org"))
 '(org-agenda-ndays 7)
 '(org-agenda-repeating-timestamp-show-all nil)
 '(org-agenda-restore-windows-after-quit t)
 '(org-agenda-show-all-dates t)
 '(org-agenda-skip-deadline-if-done t)
 '(org-agenda-skip-scheduled-if-done t)
 '(org-agenda-sorting-strategy '((agenda time-up priority-down tag-up) (todo tag-up)))
 '(org-agenda-start-on-weekday nil)
 '(org-agenda-todo-ignore-deadlines t)
 '(org-agenda-todo-ignore-scheduled t)
 '(org-agenda-todo-ignore-with-date t)
 '(org-agenda-window-setup 'other-window)
 '(org-deadline-warning-days 7)
; '(org-export-html-style "<link rel=\"stylesheet\" type=\"text/css\" href=\"mystyles.css\">")
;; RC: Charles has not supplied mystyles.css (as far as I know)
 '(org-fast-tag-selection-single-key nil)
 '(org-log-done '(done))
 '(org-refile-targets '(("newgtd.org" :maxlevel . 1) ("someday.org" :level . 2)))
 '(org-reverse-note-order nil)
 '(org-tags-column -78)
 '(org-tags-match-list-sublevels nil)
 '(org-time-stamp-rounding-minutes 5)
 '(org-use-fast-todo-selection t)
 '(org-use-tag-inheritance nil)
 '(org-log-done nil)
 '(org-agenda-include-diary nil)
 '(org-deadline-warning-days 7)
 '(org-timeline-show-empty-dates t)
 '(org-insert-mode-line-in-empty-file t)
 '(org-directory "~/orgfiles/")
 '(org-default-notes-file "~/.notes")
)

;Hookly things
(setq remember-annotation-functions '(org-remember-annotation))
(setq remember-handler-functions '(org-remember-handler))
(add-hook 'text-mode-hook 'turn-on-auto-fill)
(add-hook 'remember-mode-hook 'org-remember-apply-template)
(add-hook 'org-agenda-mode-hook 'hl-line-mode)

;; RC: keybinding stuff put together
;; RC: Im assuming that global-set-key == def-key global-map ... dont know about more arcane distinctions
;; RC: regularized "\Cs to (kbd "C-
(global-set-key (kbd "C-c l")   'org-store-link)
(global-set-key (kbd "C-c a")   'org-agenda)
(global-set-key (kbd "C-c r")   'org-remember)
(global-set-key [f8]            'remember)
(global-set-key [f9]            'remember-region)
(global-set-key (kbd "C-c g")   'gtd)
(global-set-key (kbd "C-x C-l") 'goto-line)
(global-set-key (kbd "C-x C-y") 'copy-region-as-kill)

; The major customizations
(custom-set-variables
 '(org-agenda-exporter-settings
      '((ps-number-of-columns 1)
        (ps-landscape-mode t)
        (htmlize-output-type 'css)))

 '(org-remember-templates
     '(
      ("Todo" ?t "* TODO %^{Brief Description} %^g\n%?\nAdded: %U" "c:/charles/GTD/newgtd.org" "Tasks")
      ("Private" ?p "\n* %^{topic} %T \n%i%?\n" "C:/charles/gtd/privnotes.org")
      ("WordofDay" ?w "\n* %^{topic} \n%i%?\n" "C:/charles/gtd/wotd.org")
      ))


 '(org-agenda-custom-commands
'(

("P" "Projects"   
((tags "PROJECT")))

("H" "Office and Home Lists"
     ((agenda)
          (tags-todo "OFFICE")
          (tags-todo "HOME")
          (tags-todo "COMPUTER")
          (tags-todo "DVD")
          (tags-todo "READING")))

("D" "Daily Action List"
     (
          (agenda "" ((org-agenda-ndays 1)
                      (org-agenda-sorting-strategy
                       '((agenda time-up priority-down tag-up) ))
                      (org-deadline-warning-days 0)
                      ))))
)
))

(defun gtd ()
    (interactive)
    (find-file "c:/charles/gtd/newgtd.org")
)

[-- Attachment #3: otherccorg.el --]
[-- Type: application/octet-stream, Size: 1705 bytes --]

(setq load-path (append load-path (list "L:/elisp")))

(custom-set-variables
 '(auto-raise-tool-bar-buttons t t)
 '(auto-resize-tool-bars t t)
 '(case-fold-search t)
 '(current-language-environment "Latin-1")
 '(default-input-method "latin-1-prefix")
 '(make-backup-files nil)
 '(normal-erase-is-backspace t)
 '(unify-8859-on-encoding-mode t nil (ucs-tables))
 '(default-major-mode 'text-mode)
)
;; RC why setq-default and not a custom-set-variables?

; Save files in DOS mode
(setq-default buffer-file-coding-system 'raw-text-dos)
; dont use tabs for indenting
; seems to be for python programming??
(setq-default indent-tabs-mode nil)
(setq-default tab-width 3)

;; These lines only if org-mode is not part of the X/Emacs distribution.
;; is this the way to do these things??
(autoload 'org-mode "org" "Org mode" t)
(autoload 'org-diary "org" "Diary entries from Org mode")
(autoload 'org-agenda "org" "Multi-file agenda from Org mode" t)
(autoload 'org-store-link "org" "Store a link to the current location" t)
(autoload 'orgtbl-mode "org" "Org tables as a minor mode" t)
(autoload 'turn-on-orgtbl "org" "Org tables as a minor mode")
(require 'org-install)

(add-to-list 'load-path "L:/elisp/")   
(add-to-list 'load-path "L:/elisp/remember-1.9/")

(autoload 'remember "remember" nil t)
(autoload 'remember-region "remember" nil t)

 ;; Changes all yes/no questions to y/n type
(fset 'yes-or-no-p 'y-or-n-p)

(set-variable 'confirm-kill-emacs 'yes-or-no-p)
(global-set-key "\C-x\C-r" 'prefix-region) ;; whats that

;; Highlight text chosen in with Mark region
;; momentary mark is enough most of the time
(transient-mark-mode t)
(global-font-lock-mode t)

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-08 14:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-31 13:03 Charles Cave's .emacs Rustom Mody
2009-04-01  1:04 ` Charles Cave
2009-04-08 13:59 ` Rustom Mody

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).