(show-paren-mode t)
(require 'uniquify)
(setq uniquify-buffer-name-style 'post-forward-angle-brackets)
(setq-default transient-mark-mode t)
(set-face-background 'show-paren-match-face "RoyalBlue1")
(set-face-foreground 'show-paren-match-face "black")
(set-face-background 'show-paren-mismatch-face "Red")
(set-face-foreground 'show-paren-mismatch-face "black")
(setq kill-whole-line t)
(define-key global-map "\C-z" 'scroll-down)
(setq read-file-name-completion-ignore-case t)
(setq make-backup-files nil)
(require 'linum)
(global-linum-mode t)
(setq linum-format "%4d ")
(global-set-key "\C-x\C-i" 'indent-region)
(setq scroll-step 1)
(defadvice backward-delete-char-untabify
(around ys:backward-delete-region activate)
(if (and transient-mark-mode mark-active)
(delete-region (region-beginning) (region-end))
ad-do-it))
(setq load-path (cons "/home/lr/yuto/emacs-setup/auto-complete-1.3.1" load-path))
(require 'auto-complete)
(global-auto-complete-mode t)
(setq ac-auto-start nil)
(ac-set-trigger-key "TAB")
(add-hook 'python-mode-hook 'my-python-hook)
(defun py-outline-level ()
"This is so that `current-column` DTRT in otherwise-hidden text"
(let (buffer-invisibility-spec)
(save-excursion
(skip-chars-forward "\t ")
(current-column))))
(defun my-python-hook ()
(setq outline-regexp "[^ \t\n]\\|[ \t]*\\(def[ \t]+\\|class[ \t]+\\)")
(setq outline-level 'py-outline-level)
(setq outline-minor-mode-prefix "\C-c")
(outline-minor-mode t)
(hide-body)
(show-paren-mode 1)
)
(setq load-path(append(list(expand-file-name "/home/lr/yuto/.emacs.d"))load-path))
(autoload 'lookup "lookup" nil t)
(autoload 'lookup-region "lookup" nil t)
(autoload 'lookup-pattern "lookup" nil t)
(setq lookup-search-agents '((ndtp "dserver") (ndspell)))
(setq load-path (cons "/home/lr/yuto/emacs-setup/pysmell-0.7.3" load-path))
(require 'pysmell)
(add-hook 'python-mode-hook (lambda () (pysmell-mode 1)))
(defvar ac-source-pysmell
'((candidates
. (lambda ()
(require 'pysmell)
(pysmell-get-all-completions))))
"/home/lr/yuto/emacs-setup")
(add-hook 'python-mode-hook
'(lambda ()
(set (make-local-variable 'ac-sources) (append ac-sources '(ac-source-pysmell)))))
(setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist (cons '("python" . python-mode)
interpreter-mode-alist))
(autoload 'python-mode "python-mode" "Python editing mode." t)
(add-hook 'python-mode-hook '(lambda ()
(require 'pycomplete)))
(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)
(eval-after-load "pymacs"
'(add-to-list 'pymacs-load-path "/home/lr/yuto/emacs-setup/python-mode"))