Created
August 26, 2012 22:07
-
-
Save idclark/3483866 to your computer and use it in GitHub Desktop.
.emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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. | |
| '(custom-enabled-themes (quote (tango-dark)))) | |
| (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. | |
| ) | |
| ;; auto pair | |
| (set-face-attribute 'default nil :height 140) | |
| ;;creat directories for customization | |
| (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/ess-5.13/lisp") | |
| (add-to-list 'load-path "/usr/local/share/emacs/site-lisp") | |
| (add-to-list 'load-path "~/.emacs.d/") | |
| (add-to-list 'load-path "~/.emacs.d/elpa/ess-20120808/lisp") | |
| ;; add MELPA respository | |
| (when (>= emacs-major-version 24) | |
| (require 'package) | |
| (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) | |
| ) | |
| ;;emacs speaks statisics for R sessions | |
| (require 'ess-site) | |
| (global-set-key [C-tab] 'other-window) | |
| (define-key comint-mode-map [C-up] 'comint-previous-matching-input-from-input) | |
| (define-key comint-mode-map [C-down] 'comint-next-matching-input-from-input) | |
| (setq ess-use-auto-complete t) | |
| ;; ido mode | |
| (require 'ido) | |
| (setq ido-enable-flex-matching t) | |
| (setq ido-everywhere t) | |
| (ido-mode 1) | |
| ;;key bindings | |
| (setq mac-option-key-is-meta nil | |
| mac-command-key-is-meta t | |
| mac-command-modifier 'meta | |
| mac-option-modifier 'none) | |
| ;; Auctex prefs to find latex | |
| (setq TeX-PDF-mode t) | |
| (getenv "PATH") | |
| (setenv "PATH" | |
| (concat | |
| "/usr/X11/bin" ":" | |
| "/usr/texbin" ":" | |
| "/usr/local/bin/" ":" | |
| "/usr/bin/python" ":" | |
| (getenv "PATH"))) | |
| ;;Skim for pdf launching | |
| (add-hook 'LaTeX-mode-hook 'TeX-source-correlation-mode) | |
| (setq TeX-source-correlate-method 'synctex) | |
| (add-hook 'LaTeX-mode-hook | |
| (lambda() | |
| (add-to-list 'TeX-expand-list | |
| '("%q" skim-make-url)))) | |
| (defun skim-make-url () (concat | |
| (TeX-current-line) | |
| " " | |
| (expand-file-name (funcall file (TeX-output-extension) t) | |
| (file-name-directory (TeX-master-file))) | |
| " " | |
| (buffer-file-name))) | |
| (setq TeX-view-program-list | |
| '(("Skim" "/Applications/Skim.app/Contents/SharedSupport/displayline %q"))) | |
| (setq TeX-view-program-selection '((output-pdf "Skim"))) | |
| ;;Python environment | |
| (setq python-shell-interpreter "/Library/Frameworks/Python.framework/Versions/2.7/bin/python") | |
| (put 'upcase-region 'disabled nil) | |
| ;;(setq ipython-command "/Library/Frameworks/Python.framework/Versions/2.7/bin/ipython") | |
| ;(require 'ipython) | |
| ;; autcomplete | |
| (require 'auto-complete-config) | |
| (ac-config-default) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment