Skip to content

Instantly share code, notes, and snippets.

@glallen01
Created May 14, 2013 12:14
Show Gist options
  • Save glallen01/5575456 to your computer and use it in GitHub Desktop.
Save glallen01/5575456 to your computer and use it in GitHub Desktop.
(tool-bar-mode -1)
(require 'color-theme)
(color-theme-initialize)
(color-theme-clarity)
;(transient-mark-mode 1)
(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.
'(TeX-PDF-mode t)
'(calendar-week-start-day 1)
'(case-fold-search t)
'(cua-mode t nil (cua-base))
'(font-latex-fontify-sectioning (quote color))
'(make-backup-files nil)
'(transient-mark-mode t))
(custom-set-faces
;; custom-set-faces 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.
)
; dont use tabs for indenting
(setq-default indent-tabs-mode nil)
(setq-default tab-width 3)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(require 'reftex)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode
(add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode
;;------------------------------------------------------------------------
;; Org-Mode stuff:
;;------------------------------------------------------------------------
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
'(org-startup-indented t) ;; - turn off the extra **s ?
;'(org-agenda-files (quote ("~/gtd/birthday.org" "~/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 (quote ((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 (quote other-window))
'(org-deadline-warning-days 7)
;'(org-export-html-style "<link rel=\"stylesheet\" type=\"text/css\" href=\"mystyles.css\">")
'(org-fast-tag-selection-single-key nil)
'(org-log-done (quote (done)))
;'(org-refile-targets (quote (("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-blank-before-new-entry (quote ((heading) (plain-list-item)))) ;; - eliminate space after headline/list item (nil, auto, t)
;; (add-to-list 'org-export-latex-classes
;; '("koma"
;; "\\documentclass[9pt,times,twocolumn]{scrartcl}
;; \\usepackage[margin=0.5in,landscape]{geometry}
;; \\usepackage{graphicx}
;; \\usepackage{multicol}
;; \\usepackage{enumitem}\setlist{nosep,itemindent=1ex,listparindent=1ex}
;; [NO-DEFAULT-PACKAGES]
;; [EXTRA]"
;; ("\\section{%s}" . "\\section*{%s}")
;; ("\\subsection{%s}" . "\\subsection*{%s}")
;; ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
;; ("\\paragraph{%s}" . "\\paragraph*{%s}")
;; ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
(setq org-directory "~/gtd/")
(setq org-default-notes-file "~/gtd/notes")
(setq remember-annotation-functions '(org-remember-annotation))
(setq remember-handler-functions '(org-remember-handler))
(add-hook 'remember-mode-hook 'org-remember-apply-template)
(define-key global-map "\C-cr" 'org-remember)
(setq org-remember-templates
'(
("Todo" ?t "* TODO %^{Brief Description} %^g\n%?\nAdded: %U" "~/gtd/newgtd.org" "Tasks")
("Private" ?p "\n* %^{topic} %T \n%i%?\n" "~/gtd/privnotes.org")
("WordofDay" ?w "\n* %^{topic} \n%i%?\n" "~/gtd/wotd.org")
))
(define-key global-map [f8] 'remember)
(define-key global-map [f9] 'remember-region)
(setq org-agenda-exporter-settings
'((ps-number-of-columns 1)
(ps-landscape-mode t)
(htmlize-output-type 'css)))
(setq 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
(quote ((agenda time-up priority-down tag-up) )))
(org-deadline-warning-days 0)
))))
)
)
(defun gtd ()
(interactive)
(find-file "~/gtd/newgtd.org")
)
(global-set-key (kbd "C-c g") 'gtd)
(add-hook 'org-agenda-mode-hook 'hl-line-mode)
(global-set-key "\C-x\C-r" 'prefix-region)
(global-set-key "\C-x\C-l" 'goto-line)
(global-set-key "\C-x\C-y" 'copy-region-as-kill)
;; 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)
(require 'remember)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment