public
Created

My .emacs file

  • Download Gist
.emacs
Emacs Lisp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
(add-to-list 'load-path "~/.emacs.d/")
 
(add-to-list 'load-path (expand-file-name "~/elisp/org-mode/lisp"))
(add-to-list 'auto-mode-alist '("\\.\\(org\\ |org_archive\\|txt\\)$" . org-mode))
(setq org-agenda-files '("/tmp/test.org"))
(require 'org-install)
(require 'org-habit)
 
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
 
(set-background-color "black")
(set-foreground-color "white")
(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.
'(inferior-lisp-program "java -cp /home/john/opt/clojure/clojure.jar clojure.main")
'(inhibit-startup-screen 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.
)
 
(add-hook 'TeX-mode-hook (lambda ()
(TeX-fold-mode 1)
(reftex-mode t)
(flyspell-mode t)
(setq flyspell-sort-corrections nil)
(turn-on-auto-fill)))
 
(add-to-list 'ispell-skip-region-alist '("^<<.*>>=" . "^@"))
 
 
;; clojure-mode
(add-to-list 'load-path "~/opt/clojure-mode")
(require 'clojure-mode)
 
(org-babel-do-load-languages
(quote org-babel-load-languages)
(quote ((emacs-lisp . t)
(dot . t)
(ditaa . t)
(R . t)
(python . t)
(ruby . t)
(gnuplot . t)
(clojure . t)
(sh . t)
(ledger . t)
(org . t)
(sql . t)
(plantuml . t)
(latex . t))))
 
; Do not prompt to confirm evaluation
; This may be dangerous - make sure you understand the consequences
; of setting this -- see the docstring for details
(setq org-confirm-babel-evaluate nil)
 
(require 'org-exp-bibtex)
 
;; capture
(setq org-default-notes-file "/home/john/Dropbox/notes.org")

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.