;; Fedora! Slask! .emacs! ;;; uncomment this line to disable loading of "default.el" at startup ;; (setq inhibit-default-init t) ;; turn on font-lock mode (global-font-lock-mode t) ;; this command makes Emacs set the key "f5" to copy any text that is highlighted (global-set-key [f5] "\M-w") ;; this command makes the "f6" key paste your copied text (global-set-key [f6] "\C-y") ;; enable visual feedback on selections (setq transient-mark-mode t) (defun linux-c-mode () "C mode with adjusted defaults for use with the Linux kernel." (interactive) (c-mode) (setq c-indent-level 8) (setq c-brace-imaginary-offset 0) (setq c-brace-offset -8) (setq c-argdecl-indent 8) (setq c-label-offset -8) (setq c-continued-statement-offset 8) (setq indent-tabs-mode nil) (setq tab-width 8)) (setq auto-mode-alist (cons '("/home22/j/c/foster.*/.*\\.[ch]$" . linux-c-mode) auto-mode-alist)) ;; this sets syntax highlighting so that html, C and various other programming ;; languages and style appear colored - this allows for easier understanding of ;; text inside the Emacs buffer. (global-font-lock-mode t) ;; Please do not make backup files (setq make-backup-files nil) ;; Turn off auto-saving (setq auto-save-default nil) ;; this sets line numbers (setq line-number-mode t) ;; this sets the background to grey (set-background-color "grey40") ;; this sets the foreground color or the text itself. (set-foreground-color "black") ;; this sets the cursor color (set-cursor-color "DarkOrange2") (custom-set-variables ;; custom-set-variables was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. ) (custom-set-faces ;; custom-set-faces was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. '(mode-line ((((type x w32 mac) (class color)) (:background "grey75" :foreground "black" :box (:line-width -1 :color "gray2" :style pressed-button))))) '(region ((((class color) (background dark)) (:background "DarkOrange2")))) '(scroll-bar ((t (:background "grey75" :foreground "CadetBlue4" :box (:line-width 2 :color "AliceBlue" :style released-button))))))