Wednesday, March 10, 2010

My dot emacs file

Simple emacs configuration

;;; PHP-mode
(require 'php-mode)
(add-hook 'php-mode-user-hook 'turn-on-font-lock)
(add-hook 'php-mode-user-hook
      '(lambda () (define-abbrev php-mode-abbrev-table "ex" "extends")))

(autoload 'javascript-mode "javascript-mode" "JavaScript mode" t)
(setq auto-mode-alist (append '(("\\.js$" . javascript-mode))
                   auto-mode-alist))

(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.
 '(global-font-lock-mode t nil (font-lock))
 '(javascript-mode-hook nil t)
 '(make-backup-files nil)
 '(tab-always-indent t)
 '(tab-width 4))
(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.
 )



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;   MY .EMACS COLORS   ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


;;(set-background-color "DarkSlateGrey")
(set-background-color "Black")
(set-foreground-color "White")
(set-cursor-color "Orchid")
;; Courier New font of size 10 and font style Regular: if you want bold, change normal to bold here
(set-default-font "-*-Courier New-normal-r-*-*-12-*-*-*-c-*-*-iso8859-1")

0 comments:

Post a Comment

Your opinion is very appreciated, thank you!