;; Save my session (desktop-save-mode 1) ;; Load w3m (require 'w3m-load) (require 'w3m-e21) (provide 'w3m-e23) ;; Set the loadpath(s) (add-to-list 'load-path "~/.elisp") ;; Load PHP-mode (load "php-mode") ;; Set custom variables (custom-set-variables '(column-number-mode t) '(fringe-mode (quote (nil . 0)) nil (fringe)) '(scroll-bar-mode (quote right))) ;; Set custom faces (custom-set-faces '(default ((t (:inherit nil :stipple nil :background "#000000" :foreground "#e1e1e1" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 98 :width normal :foundry "unknown" :family "DejaVu Sans Mono")))) '(my-beginning-tab-face ((((class color)) (:background "#1e1e1e"))) t) '(my-long-line-face ((((class color)) (:background "#501010" :foreground "#ffffff"))) t) '(my-space-face ((((class color)) (:background "#141414"))) t) '(my-tab-face ((((class color)) (:background "#2e2e2e"))) t) '(my-trailing-space-face ((((class color)) (:background "#905050"))) t)) ;; Tab configuration (setq indent-tabs-mode t) (setq indent-tabs-mode t) (setq default-tab-width 4) (setq tab-width 4) (setq c-basic-indent 4) (setq c-basic-offset 4) ;; Display line numbers and columns. (setq line-number-mode t) (setq column-number-mode t) (require 'linum) (setq linum-mode 1) ;; Define custom faces. (add-hook 'font-lock-mode-hook (function (lambda () (setq font-lock-keywords (append font-lock-keywords '( ;; Space faces (" +" (0 'my-space-face t)) ;; Long line faces ("^.\\{81,\\}\n" (0 'my-long-line-face t)) ;; Tab faces ("\t+" (0 'my-tab-face t)) ("[ \t]+$" (0 'my-trailing-space-face t)) ("^\t+$" (0 'my-beginning-tab-face t)) )))))) ;; Redefine custom shortcuts (global-set-key (kbd "C-z") 'undo) (global-set-key [f8] 'dabbrev-expand) (global-set-key [f5] 'switch-to-buffer) (global-set-key (kbd "TAB") 'self-insert-command)