Skip to content

Instantly share code, notes, and snippets.

@iani
Created April 14, 2011 14:27
Show Gist options
  • Save iani/919577 to your computer and use it in GitHub Desktop.
Save iani/919577 to your computer and use it in GitHub Desktop.
My .emacs file
;; This is the .emacs file that should reside in your home directory ~/ with the name .emacs:
;; ~/.emacs
;; load general configuration
(load-file "~/Dropbox/notes/config/startup.el")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; FOLLOWING IS USER SPECIFIC
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; load private rss feed from online notes
(load-file "~/.rss")
(global-set-key [C-f10] 'eval-region)
(defun org-agenda-make-timeline-for-tree ()
"make a timeline view in agenda for current tree"
(interactive)
(org-copy-subtree)
(find-file "~/tmp/agenda_tmp.org")
(beginning-of-buffer)
(let ((beg (point))) (end-of-buffer) (delete-region beg (point)))
(org-paste-subtree)
(save-buffer)
(org-timeline)
)
(global-set-key [C-f9] 'org-agenda-make-timeline-for-tree)
(defun dired-org-mode-source ()
"edit org mode lisp source code directory"
(interactive)
(dired "/Applications/Emacs.app/Contents/Resources/lisp/org"))
(global-set-key [C-f11] 'dired-org-mode-source)
;;;;;;;;;;;;;;;;; LaTex export, including Greek with XeLaTex ;;;;;;;;;;;;;
;; Set latex process to use xelatex
(setq org-latex-to-pdf-process
'("xelatex -output-directory=%o %f"
"xelatex -output-directory=%o %f"
"xelatex -output-directory=%o %f"
))
;; add the paths for MacTex and and ocaml on MacOS standard installs
(setenv "PATH"
(concat
"/usr/texbin:"
"/usr/local/bin:"
(getenv "PATH")))
(require 'org-latex)
(add-to-list 'org-export-latex-classes
'("greek-article"
"\\documentclass[12pt]{article}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
;;;;;;;;;;;;;;;;;; MORE CONFIGURATION FILES ;;;;;;;;;;;;;;;;;;;
;; configure capture files in org mode for logging of notes
(load-file "~/Dropbox/notes/config/capture_setup.el")
;; configure org publish projects for export in html or other of entire sites
(load-file "~/Dropbox/notes/config/export_setup.el")
;; Customize: Use Mono font, size 9 points.
(add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-9"))
;;
(defun set-tags-user ()
"set tag with name of user ..."
(interactive)
(org-set-tags-to "IZ")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment