Created
May 26, 2013 03:39
-
-
Save lowks/5651638 to your computer and use it in GitHub Desktop.
my .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
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") | |
("marmalade" . "http://marmalade-repo.org/packages/") | |
("melpa" . "http://melpa.milkbox.net/packages/"))) | |
(load-file "/home/lowks/.emacs.d/ergoemacs/site-lisp/site-start.el") | |
(setq-default indent-tabs-mode nil) | |
(setq tab-width 4) | |
(global-set-key (kbd "M-9") 'kill-whole-line) | |
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/") | |
(load-theme 'zenburn t) | |
;; Linux/Windows style | |
(global-set-key (kbd "<home>") 'move-beginning-of-line) | |
(global-set-key (kbd "<end>") 'move-end-of-line) | |
;; make cursor movement keys under right hand's home-row. | |
(global-set-key (kbd "M-i") 'previous-line) | |
(global-set-key (kbd "M-j") 'backward-char) | |
(global-set-key (kbd "M-k") 'next-line) | |
(global-set-key (kbd "M-l") 'forward-char) | |
(global-set-key (kbd "M-u") 'backward-word) | |
(global-set-key (kbd "M-o") 'forward-word) | |
(global-set-key (kbd "M-m") 'back-to-indentation) | |
(global-set-key (kbd "M-4") 'ido-find-file) | |
(global-set-key (kbd "M-1") 'goto-line) | |
(global-set-key (kbd "M-+") 'yas/insert-snippet) | |
(ido-mode t) | |
(require 'tramp) | |
(setq tramp-default-method "ssh") | |
(add-to-list 'load-path "/usr/share/emacs/site-lisp/pymacs/") | |
;; Initialize Pymacs | |
(autoload 'pymacs-apply "pymacs") | |
(autoload 'pymacs-call "pymacs") | |
(autoload 'pymacs-eval "pymacs" nil t) | |
(autoload 'pymacs-exec "pymacs" nil t) | |
(autoload 'pymacs-load "pymacs" nil t) | |
;; Initialize Rope | |
(require 'pymacs) | |
(pymacs-load "ropemacs" "rope-") | |
(setq ido-enable-flex-matching t) | |
(add-hook 'ido-setup-hook | |
(lambda () | |
(define-key ido-completion-map [tab] 'ido-complete))) | |
;(load-file "/home/lowks/.emacs.d/setup-flycheck.el") | |
;(require 'setup-flycheck) | |
(add-hook 'after-init-hook #'global-flycheck-mode) | |
(global-set-key [f10] 'flymake-goto-prev-error) | |
(global-set-key [f9] 'flymake-goto-next-error) | |
(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. | |
'(send-mail-function (quote smtpmail-send-it)) | |
'(smtpmail-smtp-server "smtp.gmail.com") | |
'(smtpmail-smtp-service 25)) | |
(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. | |
'(completions-common-part ((t (:inherit default :foreground "red")))) | |
'(diredp-ignored-file-name ((t (:foreground "#bebebe")))) | |
'(isearch ((((class color) (min-colors 88) (background light)) (:background "black" :foreground "white")))) | |
'(show-paren-match ((((class color) (background light)) (:background "azure2"))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment