Complete.Org: Mailing Lists: Archives: discussion: August 2000:
[aclug-L] Re: for you programming gurus
Home

[aclug-L] Re: for you programming gurus

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: discussion@xxxxxxxxx
Subject: [aclug-L] Re: for you programming gurus
From: Maverick Ieong <mluvw47@xxxxxxxxx>
Date: Sat, 26 Aug 2000 08:03:46 -0700 (PDT)
Reply-to: discussion@xxxxxxxxx

--- John Reinke <jmreinke@xxxxxxxxx> wrote:
> Ok. I've been programming on Linux for a while, but
> I haven't really
> utilized any of the many tools I'm sure are
> available on Linux. I've
> already accepted the fact that I'll have to figure
> out that clunky,
> convoluted, everything-and-the-kitchen-sink
> (X)Emacs.  ;-)  How do you set
> the default indentation style, though? I've checked
> every menu and submenu
> I could find...
> 

I have setup a .emacs file and here is the following
set up
cat .emacs |more

;; Options Menu Settings
;; =====================
(cond
 ((and (string-match "XEmacs" emacs-version)
       (boundp 'emacs-major-version)
       (or (and
            (= emacs-major-version 19)
            (>= emacs-minor-version 14))
           (= emacs-major-version 20))
       (fboundp 'load-options-file))
  (load-options-file
"/usr/users/User7/vxieong/.xemacs-options")))
;; ============================
;; End of Options Menu Settings
;; set C to be the default mode
;; auto indent C files


(setq font-lock-mode-hook 'my-font-lock-mode-hook)
(defun my-font-lock-mode-hook ()
  (set-face-foreground 'font-lock-keyword-face
"orange4")
)

(line-number-mode 1)

(setq default-major-mode 'c-mode)
(setq c-mode-hook 'my-c-mode-hook)

(defun my-c-mode-hook ()
  (c-set-style "ellemtel")
  (setq c-basic-offset '4)
  (setq c-auto-newline t)
  (c-indent-region (point-min) (point-max))
  (font-lock-mode 1)
)

 you can also get into xemacs, and customize your
indent style and go to save option to save the change
on the .emacs file.
                      
                                Mav



=====
~:~:~:~:~:~:~~:~:~:~:~:~:~~:~:~:~:~:~:~~:~:~:~:~:~:~~:~:~:~:~:~:~

__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

-- This is the discussion@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


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