; Some people I know have asked about my .emacs. Voila:
(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.
)
(setq default-buffer-file-coding-system 'unix)
(setenv "PATH" (concat "c:/cygwin-1.7/bin;" (getenv "PATH")))
(setq exec-path (cons "c:/cygwin-1.7/bin/" exec-path))
(require 'cygwin-mount)
(cygwin-mount-activate)
(add-to-list 'load-path "/cygdrive/c/program-files/emacs-22.3/site-lisp")
(add-to-list 'auto-mode-alist '("\\.cs$" . java-mode))
(add-hook 'java-mode-hook
(lambda ()
(setq indent-tabs-mode nil)))
(autoload 'js2-mode "js2" nil t)
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
(add-hook 'js2-mode-hook
(lambda ()
(setq indent-tabs-mode nil)))
(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))
(add-hook 'python-mode-hook
(lambda ()
(set (make-variable-buffer-local 'beginning-of-defun-function)
'py-beginning-of-def-or-class)
(setq outline-regexp "def\\|class ")
(setq indent-tabs-mode nil)))
(load (concat "/cygdrive/c/program-files/emacs-22.3/site-lisp/" "nxml-mode-20041004/rng-auto.el"))
(add-to-list 'auto-mode-alist '("\\.\\(xml\\|xsl\\|rng\\|xhtml\\)\\'" . nxml-mode))
(add-hook 'nxml-mode-hook
(lambda ()
(setq indent-tabs-mode nil)))
(setq magic-mode-alist
(cons '("<\\?xml" . nxml-mode)
magic-mode-alist))
(setq binary-process-input t)
(setq w32-quote-process-args ?\")
(setq shell-file-name "bash") ;; or sh if you rename your bash executable to sh.
(setenv "SHELL" shell-file-name)
;; For subprocesses invoked via the shell
;; (e.g., "shell -c command")
(setq explicit-shell-file-name shell-file-name)
(setq explicit-sh-args '("-login" "-i"))
(put 'erase-buffer 'disabled nil)
Shazam Hits 100 Billion Song Recognitions
8 hours ago
No comments:
Post a Comment