Sample .emacs File (Emacs editor)



next up previous contents index
Next: Sample .xinitrc (X Up: SAMPLE DOT FILES Previous: Sample .profile (sh

Sample .emacs File (Emacs editor)

 

 
(setq compile-command "make")
(display-time)
(global-set-key "" 'buffer-menu)
(global-set-key "" 'compile)
(global-set-key "" 'shell)
(setq mh-progs "/usr/bin/")
(setq mh-lib "/usr/lib/mh")
(setq mh-summary-height 10)
(setq dired-listing-switches "-alt")
(setq list-directory-verbose-switches "-alt")
(setq auto-save-default)
(setq default-major-mode 'latex-mode)
(setq-default case-fold-search nil)
(setq text-mode-hook '(lambda () (auto-fill-mode 1)))
(setq backup-by-copying nil)
(setq backup-by-copying-when-linked t)
;; A protection against Trojan Horses via environment variables
(setq inhibit-local-variables t)
(setq kept-new-versions 3)
(setq kept-old-versions 0)
(setq list-matching-lins-default-context-lines 2)
(setq require-final-newline 1)
(setq version-control t)
(setq mail-archive-file-name "~/Mail/out")
(setq display-time-day-and-date t)
;;Since .emacspfkeys pertains to terminal types, load it from 
;;/usr/lib/gnuemacs/lisp/term/{term name} (load-file "~/.emacspfkeys")
(setq shell-pushd-regexp "pu")
(setq shell-popd-regexp "po")
;; Following line locates for emacs local functions for load-file
(setq load-path (list "/usr/local/lib/emacs/lisp"))
(put 'narrow-to-page 'disabled nil)