X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=misc%2Finit.el;fp=misc%2Finit.el;h=e98b37b9f94796ba44abac97e2aa800fe735b5eb;hp=0000000000000000000000000000000000000000;hb=28b4bd98896e55ce9f148d6b2c2a768bf847f65f;hpb=990ef457de6998f79947c81a16c8e7f843e784c0 diff --git a/misc/init.el b/misc/init.el new file mode 100644 index 0000000..e98b37b --- /dev/null +++ b/misc/init.el @@ -0,0 +1,68 @@ +;; .emacs + +;;; uncomment this line to disable loading of "default.el" at startup +;; (setq inhibit-default-init t) + +(defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version)) + +;; turn on font-lock mode +(when (fboundp 'global-font-lock-mode) + (global-font-lock-mode t)) + +;; enable visual feedback on selections +;(setq transient-mark-mode t) + +;; default to better frame titles +;;(setq frame-title-format +;; (concat "%b - emacs@" system-name)) +;; stop at the end of the file, not just add lines +(setq next-line-add-newlines nil) + + +(cond ((not running-xemacs) + (global-font-lock-mode t) +)) + + +(when window-system + ;; enable wheelmouse support by default + (mwheel-install)) + +(global-set-key "%" 'match-paren) + + (defun match-paren (arg) + "Go to the matching parenthesis if on parenthesis otherwise insert %." + (interactive "p") + (cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1)) + ((looking-at "\\s\)") (forward-char 1) (backward-list 1)) + (t (self-insert-command (or arg 1))))) + + +(c-set-offset 'case-label 4) +(setq c-basic-offset 4) + +(custom-set-variables + '(paren-mode (quote sexp) nil (paren)) + '(column-number-mode t) + '(line-number-mode t) + '(font-lock-mode t nil (font-lock)) +) +(custom-set-faces) + + + +(set-face-background 'default "Black") +(set-face-foreground 'default "green") +;;(set-face-foreground 'highlight "LightSeaGreen") +;;(set-face-background 'highlight "blue") + +(set-face-foreground 'font-lock-function-name-face "White") +(set-face-foreground 'font-lock-keyword-face "Red") +(set-face-background 'font-lock-keyword-face "black") +(set-face-foreground 'font-lock-string-face "LightGoldenRod") +(set-face-foreground 'font-lock-comment-face "Grey") + + +(set-face-background 'modeline "CadetBlue") +(set-face-foreground 'modeline "black"); +