Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit d9da825a54dd22f5d30fe8cdaa99fe4bafda8353 @garybernhardt committed Dec 17, 2008
Showing with 29,871 additions and 0 deletions.
  1. +2 −0 .bashrc
  2. +200 −0 .emacs
  3. +919 −0 .emacs-lisp/doctest-mode.el
  4. +885 −0 .emacs-lisp/framepop.el
  5. +178 −0 .emacs-lisp/mmm-auto.el
  6. +325 −0 .emacs-lisp/mmm-class.el
  7. +446 −0 .emacs-lisp/mmm-cmds.el
  8. +193 −0 .emacs-lisp/mmm-compat.el
  9. +101 −0 .emacs-lisp/mmm-cweb.el
  10. +176 −0 .emacs-lisp/mmm-mason.el
  11. +296 −0 .emacs-lisp/mmm-mode.el
  12. +410 −0 .emacs-lisp/mmm-noweb.el
  13. +817 −0 .emacs-lisp/mmm-region.el
  14. +81 −0 .emacs-lisp/mmm-rpm.el
  15. +374 −0 .emacs-lisp/mmm-sample.el
  16. +64 −0 .emacs-lisp/mmm-univ.el
  17. +158 −0 .emacs-lisp/mmm-utils.el
  18. +1,050 −0 .emacs-lisp/mmm-vars.el
  19. +4,655 −0 .emacs-lisp/psvn.el
  20. +36 −0 .emacs-lisp/pycomplete.el
  21. +96 −0 .emacs-lisp/pycomplete.py
  22. +3,851 −0 .emacs-lisp/python-mode.el
  23. +203 −0 .emacs-lisp/redo.el
  24. +829 −0 .emacs-lisp/rst-mode.el
  25. +528 −0 .emacs-lisp/vimpulse.el
  26. +2 −0 .gvimrc
  27. +63 −0 .hgignore
  28. +12 −0 .hgrc
  29. +62 −0 .profile
  30. +16 −0 .vim/colors/Black.vim
  31. +63 −0 .vim/colors/Dark.vim
  32. +154 −0 .vim/colors/autumnleaf.vim
  33. +32 −0 .vim/colors/c.vim
  34. +25 −0 .vim/colors/darkzen.vim
  35. +13 −0 .vim/colors/grb.vim
  36. +13 −0 .vim/colors/grb.vim~
  37. +15 −0 .vim/colors/grblight.vim
  38. +14 −0 .vim/colors/grblight.vim~
  39. +227 −0 .vim/colors/moria.vim
  40. +92 −0 .vim/colors/pyte.vim
  41. +26 −0 .vim/colors/redstring.vim
  42. +811 −0 .vim/colors/xterm16.vim
  43. +16 −0 .vim/compiler/nose.vim
  44. +710 −0 .vim/doc/project.txt
  45. +1,501 −0 .vim/doc/taglist.txt
  46. +74 −0 .vim/doc/tags
  47. +1 −0 .vim/ftdetect/kid.vim
  48. +68 −0 .vim/ftplugin/kid.vim
  49. +196 −0 .vim/indent/python.vim
  50. +507 −0 .vim/plugin/bufkill.vim
  51. +1,293 −0 .vim/plugin/project.vim
  52. +110 −0 .vim/plugin/scratch.vim
  53. +1,162 −0 .vim/plugin/svncommand.vim
  54. +4,546 −0 .vim/plugin/taglist.vim
  55. +438 −0 .vim/scripts/python.vim
  56. +69 −0 .vim/syntax/kid.vim
  57. +304 −0 .vim/syntax/python.vim
  58. +57 −0 .vim/syntax/svn.vim
  59. +93 −0 .vim/syntax/svnlog.vim
  60. +213 −0 .vimrc
@@ -0,0 +1,2 @@
+source ~/.profile
+
200 .emacs
@@ -0,0 +1,200 @@
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(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.
+ '(case-fold-search t)
+ '(column-number-mode t)
+ '(current-language-environment "English")
+ '(global-font-lock-mode t nil (font-lock))
+ '(scroll-bar-mode nil)
+ '(tool-bar-mode nil nil (tool-bar))
+ '(transient-mark-mode t))
+(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.
+ )
+
+; GRB: append my emacs lisp path to the load-path
+(setq load-path (cons "~/.emacs-lisp" load-path))
+
+; GRB: load python mode
+(load-file "~/.emacs-lisp/python-mode.elc")
+(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)
+
+; GRB: load rest mode
+(autoload 'rst-mode "~/.emacs-lisp/rst-mode" "mode for editing reStructuredText documents" t)
+(setq auto-mode-alist
+ (append '(("\\.rst$" . rst-mode)
+ ("\\.rest$" . rst-mode)) auto-mode-alist))
+
+; GRB: no tabs
+(setq-default indent-tabs-mode nil)
+(setq-default c-basic-offset 4)
+
+; GRB: confirm exit
+(setq confirm-kill-emacs #'yes-or-no-p)
+
+; GRB: C-style indentation in CSS mode
+(setq cssm-indent-function #'cssm-c-style-indenter)
+
+; GRB: unbold all font faces
+;(defun unbold-all-faces ()
+ ;"Clear the `bold' flag from all faces."
+ ;(interactive)
+ ;(dolist (f (face-list))
+ ;(if (face-bold-p f) (set-face-bold-p f nil))))
+;(add-hook 'font-lock-mode-hook
+ ;(lambda ()
+ ;(unbold-all-faces)))
+
+; GRB: set the font. See these messages:
+; http://lists.sourceforge.jp/mailman/archives/macemacsjp-english/2007-January/000858.html
+; http://lists.sourceforge.jp/mailman/archives/macemacsjp-english/2007-January/000860.html
+(require 'carbon-font)
+(add-to-list 'default-frame-alist
+ '(font . "-*-*-medium-r-normal--12-*-*-*-*-*-fontset-osaka"))
+
+(global-set-key "\C-cb" 'gary-insert-comment)
+
+;;; GRB: change the color for function names; the default (dark blue)
+;;; is hard to read on black
+(require 'font-lock)
+(copy-face 'bold 'font-lock-function-name-face)
+(set-face-foreground 'font-lock-function-name-face "magenta")
+
+; GRB: keybindings
+(global-set-key (quote [?\e ?g]) (quote goto-line))
+(global-set-key '[?\e ?(] 'start-kbd-macro)
+(global-set-key '[?\e ?)] 'end-kbd-macro)
+(global-set-key [?\e ?n] 'call-last-kbd-macro)
+
+; GRB: cycle through selective-display levels
+(setq selective-display-level 0)
+(setq selective-display-increment 4)
+(setq max-selective-display-level 8)
+(defun switch-selective-display ()
+ "Switch to the next selective display level, starting over if appropriate"
+ (if (>= selective-display-level max-selective-display-level)
+ (setq selective-display-level 0)
+ (setq selective-display-level
+ (+ selective-display-increment
+ selective-display-level)))
+ (interactive)
+ (set-selective-display selective-display-level))
+(global-set-key "\M-c" 'switch-selective-display)
+
+; GRB: use html-mode for kid templates
+(add-to-list 'auto-mode-alist '("\\.kid?\\'" . html-mode))
+
+; GRB: turn off menu bar
+(menu-bar-mode nil)
+
+(autoload 'psvn "psvn:w" "PSVN")
+
+;(setq viper-mode t)
+;(setq viper-auto-indent 1)
+;(require 'viper)
+
+(setq viper-mode t) ; enable Viper at load time
+(setq viper-ex-style-editing nil) ; can backspace past start of insert / line
+(require 'viper) ; load Viper
+(require 'vimpulse) ; load Vimpulse
+(require 'redo)
+
+; GRB: don't go into insert mode for shells, because that trips me up
+; when I expect to be able to use C-w to switch through all my windows
+(delq 'shell-mode viper-insert-state-mode-list)
+(delq 'eshell-mode viper-insert-state-mode-list)
+
+; GRB: resize and move the window if we're in a windowing system
+(defun resize-frame ()
+ "Resize current frame"
+ (interactive)
+ ;(set-frame-size (selected-frame) 167 58))
+ ;(set-frame-size (selected-frame) 271 71))
+ ;(set-frame-size (selected-frame) 237 62))
+ ;(set-frame-size (selected-frame) 161 116))
+ (set-frame-size (selected-frame) 243 71))
+(defun move-frame ()
+ "Move current frame"
+ (interactive)
+ (set-frame-position (selected-frame) 0 0))
+(if (not (eq window-system 'nil))
+ (progn
+ (move-frame)
+ (resize-frame)))
+
+; GRB: split the windows
+;(progn
+ ;(interactive)
+ ;(split-window-horizontally 82)
+ ;(other-window 1)
+ ;(split-window-horizontally 82)
+ ;(other-window 1)
+ ;(split-window)
+ ;(other-window 1)
+ ;(eshell)
+ ;(viper-intercept-ESC-key)
+ ;(other-window -2))
+;(progn
+ ;(interactive)
+ ;(split-window-vertically 90)
+ ;(split-window-horizontally))
+(progn
+ (interactive)
+ (split-window-horizontally 82)
+ (other-window 1)
+ (split-window-horizontally 82)
+ (other-window 1)
+ (other-window 1))
+
+; GRB: use C-o and M-o to switch windows
+(global-set-key "\C-o" 'other-window)
+(defun prev-window ()
+ (interactive)
+ (other-window -1))
+(global-set-key "\M-o" 'prev-window)
+
+; GRB: turn off VC mode completely
+(set-variable 'vc-handled-backends ())
+
+; GRB: highlight trailing whitespace
+(set-default 'show-trailing-whitespace t)
+
+; GRB: open temporary buffers in a dedicated window split
+(setq special-display-regexps
+ '("^\\*Completions\\*$"
+ "^\\*Help\\*$"
+ "^\\*grep\\*$"
+ "^\\*Apropos\\*$"
+ "^\\*elisp macroexpansion\\*$"
+ "^\\*local variables\\*$"
+ "^\\*Compile-Log\\*$"
+ "^\\*Quail Completions\\*$"
+ "^\\*Occur\\*$"
+ "^\\*frequencies\\*$"
+ "^\\*compilation\\*$"
+ "^\\*Locate\\*$"
+ "^\\*Colors\\*$"
+ "^\\*tumme-display-image\\*$"
+ "^\\*SLIME Description\\*$"
+ "^\\*.* output\\*$" ; tex compilation buffer
+ "^\\*TeX Help\\*$"))
+(setq grb-temporary-window (nth 2 (window-list)))
+(defun grb-special-display (buffer &optional data)
+ (let ((window grb-temporary-window))
+ (with-selected-window window
+ (switch-to-buffer buffer)
+ window)))
+(setq special-display-function #'grb-special-display)
+
+; Unset cmd-space
+(global-unset-key (quote [67108896]))
Oops, something went wrong.

0 comments on commit d9da825

Please sign in to comment.