Mercurial > hg > config
view .emacs @ 0:f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
author | k0s <k0scist@gmail.com> |
---|---|
date | Thu, 15 Oct 2009 11:41:26 -0400 |
parents | |
children | 81e89e519980 |
line wrap: on
line source
(server-start) (if (boundp 'tool-bar-mode) (tool-bar-mode 0)) (setq inhibit-startup-message t) (setq make-backup-files nil) (put 'downcase-region 'disabled nil) (setq truncate-lines nil) (setq truncate-partial-width-windows nil) (setq use-file-dialog nil) (setq python-indent 4) (setq python-guess-indent nil) (setq-default indent-tabs-mode nil) (defface extra-whitespace-face '((t (:background "pale green"))) "Used for tabs and such.") (autoload 'doctest-mode "doctest-mode" "doctest editing mode." t) (transient-mark-mode 1) (put 'upcase-region 'disabled nil) ;; Show line-number in the mode line (line-number-mode 1) ;; Show column-number in the mode line (column-number-mode 1) ;; Bind major editing modes to certain file extensions (setq auto-mode-alist (cons '("\\.zcml$" . sgml-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.pt$" . sgml-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.cpt$" . sgml-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.cpy$" . python-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.vpy$" . python-mode) auto-mode-alist)) ;; Turn off the status bar and on the mouse if we're not in a window system (menu-bar-mode (if window-system 1 -1)) (add-hook 'text-mode-hook 'turn-on-auto-fill) (add-hook 'sgml-mode-hook 'turn-off-auto-fill) (setq grep-command "grep -liE") ;; recentf stuff (require 'recentf) (recentf-mode 1) (setq recentf-max-menu-items 25) (global-set-key "\C-x\ \C-r" 'recentf-open-files) ;; full-steam-ahead-and-damn-the-torpedoes (defun full-steam-ahead-and-damn-the-torpedoes (prompt) t) (defalias 'y-or-n-p 'full-steam-ahead-and-damn-the-torpedoes) (defalias 'yes-or-no-p 'full-steam-ahead-and-damn-the-torpedoes) (require 'uniquify) (setq uniquify-buffer-name-style 'post-forward) ;; wheel mouse (global-set-key [mouse-4] 'scroll-down) (global-set-key [mouse-5] 'scroll-up) ;; substring buffer switching mode (iswitchb-mode 1) (global-set-key "\M-g" 'goto-line) ;; (when (load "flymake" t) ;; (defun flymake-pyflakes-init () ;; (let* ((temp-file (flymake-init-create-temp-buffer-copy ;; 'flymake-create-temp-inplace)) ;; (local-file (file-relative-name ;; temp-file ;; (file-name-directory buffer-file-name)))) ;; (list "pyflakes" (list local-file)))) ;; (add-to-list 'flymake-allowed-file-name-masks ;; '("\\.py\\'" flymake-pyflakes-init))) ;; (add-hook 'find-file-hook 'flymake-find-file-hook) (server-start)