;; -*- lisp -*- 
;;own config file for emacs
;;originally for emacs19.34 but still in use
;;

;;disable menu-bar
(menu-bar-mode nil)

;;disable scroll-bar	
(toggle-scroll-bar nil)

;;use F3 key to kill buffer
(global-set-key [f3] 'kill-this-buffer)

;;use F4 key to ispell buffer
(global-set-key [f4] 'ispell-buffer)

;; use F5 as "mark", F6 as "copy", F7 as "paste"
(global-set-key [f5] 'set-mark-command)
(global-set-key [f6] "\M-w")
(global-set-key [f7] "\C-y")


;;use F8 to start vm
(global-set-key [f8] 'vm)

;;use F9 to save buffer
(global-set-key [f9] 'save-buffer)



;;syntax colour; but only works in X
;(global-font-lock-mode t)

(global-set-key [f11] 'font-lock-mode)


;;set text mode as default mode
(setq default-major-mode 'text-mode) 

;;set cursor to line of 3 pixels width
(setq initial-frame-alist '((cursor-type . (bar . 3)))) 

;;always auto-fill in text mode.
(add-hook 'text-mode-hook 'turn-on-auto-fill)      

;; Turn off the bell
;;(setq visible-bell t)

;; next line loads custom .el files from ~/emacs
;(load "~/emacs/blinking-cursor")
  
  
;;set custom colors - but only works in X not on console 
 (setq default-frame-alist
             (append default-frame-alist
                    
              '((foreground-color . "green")
                       
                (background-color . "black")
                      ;;(cursor-color . "red"))))   
                (cursor-color . "blue"))))

 
 (load-library "mailcrypt")
 (mc-setversion "gpg")
 (setq mc-gpg-user-id "Muhammad Yusuf")
      


