;; Where to find my lisp libraries (setq load-path (cons (expand-file-name "/home/awcolley/my-lisp") load-path)) ;; Windows cut/copy/paste commands (load "cua-mode") (CUA-mode t) ;; Load PHP Mode (load-library "php-mode") ;; Load My Desktop Restore package (load "restore") (setq-default in-restore-env t) ;; Load My Useful Emacs Tricks (load "awc") ;; Update major colors (set-background-color "#000000") (set-foreground-color "#f0f0f0") (set-cursor-color "#DD3333") (custom-set-variables ;; custom-set-variables was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. '(c-basic-offset 3) '(c-default-style "k&r") '(case-fold-search t) '(current-language-environment "English") '(delete-selection-mode t nil (delsel)) '(global-font-lock-mode t nil (font-lock)) '(indent-tabs-mode nil) '(php-mode-force-pear f) '(printer-name "phaser") '(ps-default-bg (quote (0.0 0.0 0.0))) '(ps-default-fg (quote (1.0 1.0 1.0))) '(ps-printer-name-option "-P") '(scroll-bar-mode (quote right)) '(show-paren-mode t nil (paren)) '(transient-mark-mode t)) (custom-set-faces ;; custom-set-faces was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. '(font-lock-builtin-face ((((class color) (background dark)) (:bold t :foreground "#90618f")))) '(font-lock-comment-face ((((class color) (background dark)) (:foreground "#e55f60" :background "#222222")))) '(font-lock-constant-face ((((class color) (background dark)) (:bold t :foreground "#df9043")))) '(font-lock-function-name-face ((((class color) (background dark)) (:bold t :foreground "#96b7ff")))) '(font-lock-keyword-face ((((class color) (background dark)) (:bold t :foreground "#90618f")))) '(font-lock-string-face ((((class color) (background dark)) (:foreground "#7f91c1")))) '(font-lock-type-face ((((class color) (background dark)) (:bold t :foreground "#e57f80")))) '(font-lock-variable-name-face ((((class color) (background dark)) (:bold t :foreground "#ffffff")))) '(highlight ((((class color) (background dark)) (:bold t :foreground "#7f91c1" :background "#222222")))) '(modeline ((((class color) (background dark)) (:foreground "#ffffff" :background "#90618f")))) '(region ((t (:background "#223344"))))) ;; Always end a file with a newline (setq require-final-newline t) ;; Stop at the end of the file, not just add lines (setq next-line-add-newlines nil) ;; Enable time-stamps in files (add-hook 'write-file-hooks 'time-stamp) (setq time-stamp-active t) (setq time-stamp-format "%3a %02d %3b %:y at %02H:%02M:%02S by %u") ;; Add column, date & time to mode line (setq column-number-mode t) (setq display-time-day-and-date t) (setq display-time-24hr-format t) (setq display-time-string-forms '(day " " monthname " " year " " 24-hours ":" minutes)) (display-time-mode t) (setq auto-mode-alist (append '(("\\.h$" . c++-mode)) auto-mode-alist)) ;; Set C indentation style ;;(setq c-default-style "stroustrup") (add-hook 'c-mode-common-hook '(lambda () (c-toggle-auto-hungry-state 1) ;; (setq c-basic-offset 2) ) ) (setq php-mode-force-pear t)