The website of Lei Chen

Sunshine and rain of a developer

Linux Config Files

.screenrc

#Lei Chen screenrc

startup_message off
#Scroll by pageup pagedown
termcapinfo xterm* ti@:te@

caption always
caption string ‘%{= wk}[ %{k}%H %{k}][%= %{= wk}%?%-Lw%?%{r}(%{r}%n*%f%t%?(%u)%?%{r})%{k}%?%+Lw%?%?%=%{k}][%{b} %d/%m %{k}%c %{k}]‘

defscrollback 10000
vbell off

# Bind F11 and F12 (NOT F1 and F2) to previous and next screen window
bindkey -k k5 prev
bindkey -k k6 next

.vimrc

set nobackup
set nowritebackup

.emacs (this is a sort version just for editing python code, my complete .emacs and .emacs.d directory are here )

;; -*-Emacs-Lisp-*-
;; Lei Chen’s Emacs Setting
;; Sat Nov  7 00:59:03 EST 2009

(add-to-list ‘load-path “~/.emacs.d”)
(setq backup-inhibited t)
(setq inhibit-startup-message t)
(fset ‘yes-or-no-p ‘y-or-n-p)
(tool-bar-mode -1)
;;(menu-bar-mode -1)
(setq default-major-mode ‘text-mode)
(setq text-mode-hook ‘turn-on-auto-fill)
(desktop-save-mode 1)

;;yet another snippet. Code completion tool
;;(require ‘yasnippet)
;;(yas/load-directory “~/.emacs.d/snippets”)

;; auto-complete
(require ‘auto-complete)
(global-auto-complete-mode t)
(setq ac-auto-start 4)

;; Mode for finding files and switch buffers
(require ‘ido)
(ido-mode t)

(require ‘ibuffer)
(global-set-key (kbd “C-x C-b”) ‘ibuffer)

;; Book Mark
(require ‘af-bookmark)
(global-set-key [(control f2)]  ‘af-bookmark-toggle )
(global-set-key [f3]  ‘af-bookmark-cycle-forward )
(global-set-key [f2]  ‘af-bookmark-cycle-reverse )
(global-set-key [(control shift f2)]  ‘af-bookmark-clear-all )

;;Python Settings
(autoload ‘python-mode “python-mode” “Python Mode.” t)
(add-to-list ‘auto-mode-alist ‘(“\\.py\\’” . python-mode))
(add-to-list ‘interpreter-mode-alist ‘(“python” . python-mode))
(require ‘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)
(pymacs-load “ropemacs” “rope-”)
(setq ropemacs-enable-autoimport t)
(add-hook ‘python-mode-hook
(lambda ()
(yas/minor-mode)))

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>