;; Sample .emacs file

;; some configurations I like, taken from my .emacs
;; experiment and add your own

;; map C-x b  to f1
(global-set-key [f1] 'switch-to-buffer)
;; map C-x o to f2
(global-set-key [f2] 'other-window)
;; map C-x o to tab, I don't like this, some do
;;(global-set-key [C-tab] 'other-window)

;; set background to black, easy on the eyes
(set-background-color "white")
;; set text (i.e., foreground) to white
(set-foreground-color "black")

;; I hate scroll bars
(toggle-scroll-bar 0)
;; ... toolbars
(tool-bar-mode 0)
;; ... but I like menus sometimes
(menu-bar-mode 1) 
;; ... and line numbers too
(global-linum-mode 1)


(setq line-number-mode t)
(setq column-number-mode t)


;; for scrolling line by line, instead of default emacs jump
;; after playing with it, I liked the default better
;(setq scroll-step 1
 ;     scroll-conservatively  10000) 
;scroll by one line, some persons on stackoverflow worried about it?

(setq 
;; don't ask if i want to quit
confirm-kill-emacs nil 
;; don't ask to save stuff either
confirm-save-buffers nil
show-paren-style 'mixed 
show-paren-delay 0 
;; ring-bell-function 'ignore
font-lock-maximum-decoration t
 frame-title-format "%b (%f)" )

(show-paren-mode t)
(global-font-lock-mode t)
;; y or n is sufficient for yes or no questions
(fset 'yes-or-no-p 'y-or-n-p)
;; show me the time
(display-time)

(setq scheme-program-name "racket")