help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Auto-indentation


From: Marcus Husar
Subject: Auto-indentation
Date: Fri, 10 Feb 2006 14:27:32 +0100
User-agent: Mutt/1.5.11

I no searched 2 hours for auto-indentation in emacs. I couldn't find anything. 
Could someone please tell me how it works?

here is my .emacs:

(setq case-fold-search t)
(global-font-lock-mode t)
(mouse-wheel-mode t)
(setq auto-fill-mode 1)
(setq display-time-day-and-date t)
(display-time)

(setq c-mode-hook
      (function (lambda ()
                  (c-set-style "K&R")
                  (setq c-basic-offset 8))))
(setq objc-mode-hook
      (function (lambda ()
                  (c-set-style "K&R")
                  (setq c-basic-offset 8))))
(setq c++-mode-hook
      (function (lambda ()
                  (c-set-style "K&R")
                  (setq c-basic-offset 8))))
(setq java-mode-hook
      (function (lambda ()
                  (c-set-style "K&R")
                  (setq c-basic-offset 8))))

-- 
Marcus Husar: mail@marcus-husar.de

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]