Showing posts with label emacs. Show all posts
Showing posts with label emacs. Show all posts

Sunday, January 21, 2007

It's painful to write one from scratch everytime... will update it later

(custom-set-variables
'(load-home-init-file t t))
(custom-set-faces)


(global-set-key '[f12] 'other-window)
(global-set-key '[f1] 'other-window)
(global-set-key '[f2] 'undo)
(global-set-key '[f3] 'compile)
(global-set-key '[f4] 'gdb)
(global-set-key '[f9] 'shell)

(setq c-mode-hook
(function (lambda ()
(setq indent-tabs-mode nil)
(setq c-indent-level 2))))
(setq objc-mode-hook
(function (lambda ()
(setq indent-tabs-mode nil)
(setq c-indent-level 2))))
(setq c++-mode-hook
(function (lambda ()
(setq indent-tabs-mode nil)
(setq c-indent-level 2))))


(setq inhibit-startup-message t)
(setq require-final-newline t)
(setq display-time-day-and-date t)
(auto-show-make-point-visible)
(setq search-highlight t)
(setq next-line-add-newlines nil)
(setq indent-tabs-mode nil)
(setq default-tab-width 2)
(setq bell-volume 0)