My Emacs startup file (.emacs)

Posted by Sim at Jun 20, 2008 02:57 PM |
Filed under:

Here is what goes in my .emacs file normally.

 

Here is what is in my "~/.emacs" file:

;; Get rid of that dumb splash screen.
(setq inhibit-splash-screen t)
(server-start)
(setq server-raise-frame t)

(setq c-mode-hook
    (function (lambda ()
		(setq c-default-style "bsd")
                (setq indent-tabs-mode nil)
                (setq c-indent-level 4)
		(setq c-basic-offset 4)
		(c-set-offset 'substatement-open 0)
		)))
(setq objc-mode-hook
    (function (lambda ()
		(setq c-default-style "bsd")
                (setq indent-tabs-mode nil)
                (setq c-indent-level 4)
		(setq c-basic-offset 4)
		(c-set-offset 'substatement-open 0)
		)))
(setq c++-mode-hook
    (function (lambda ()
		(setq c-default-style "bsd")
                (setq indent-tabs-mode nil)
                (setq c-indent-level 4)
		(setq c-basic-offset 4)
		(c-set-offset 'substatement-open 0)
		)))

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(ecb-options-version "2.32")
 '(ecb-primary-secondary-mouse-buttons (quote mouse-1--mouse-2))
 '(w32shell-cygwin-bin "c:\\cygwin\\bin")
 '(w32shell-shell (quote cygwin)))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )

Document Actions