;; -*- lisp -*- ;;own config file for emacs19.34 ;; ;;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 key to set mark ;;To copy, place cursor at start of what is to be copied, ;;then press the F5 key. (global-set-key [f5] 'set-mark-command) ;;use F6 key to copy ;;Move cursor to end of what is to be copied, and press the F6 ;;key (global-set-key [f6] "\M-w") ;;use F7 key to paste ;;Move cursor to exactly where copied item is to be inserted ;;and press the F7 key. (global-set-key [f7] "\C-y") ;;use F8 to start vm (Mail User Agent) (global-set-key [f8] 'vm) ;;set cursor to vertical line: ;(setq initial-frame-alist '((cursor-type . bar))) ;;set width of cursor line in pixels - e.g. 1 or 2; ;3 is OK. Note: works only in X and not on console (setq initial-frame-alist '((cursor-type . (bar . 3)))) ;;set text mode as default mode (setq default-major-mode 'text-mode) ;; next line loads custom .el files from ~/emacs ;(load "~/emacs/vm") ;;always auto-fill in text mode. (add-hook 'text-mode-hook 'turn-on-auto-fill) ;;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 . "blue")))) ;;mailcrypt ;;set gpg as default (mc-setversion "gpg") ;;set comment (setq mc-gpg-comment "mailcrypt 3.5.5") ;; If more than one key, specify the one to use ;;(setq mc-gpg-user-id "Muhammad Yusuf")