[svlug] Text Editor

D. Dante Lorenso dante at lorenso.com
Wed Nov 4 22:33:53 PST 1998


On Wed, Nov 04, 1998 at 02:45:20PM -0800, Scott wrote:
> What is a good program to use for writing C programs.  I like ae because
> it has smooth scrolling.  I need a text editor however that has a
> smaller tab stop than ae's (8 characters i think).  4 or 5 char would be
> nice.  it also must have smooth scrolling like ae.  And it also must be
> like vim where when you press tab and then press enter instead of

I LOVE emacs.  It's the good ol' time tested editor for code.  I have 
recently discovered the "syntax highlighting" that REALLY help to view
code while editing.  It's powerful stuff overall.  There's an Xemacs 
as well.

I'm attaching my ".emacs" RC file so you can see what I've set to enable
colors and stuff.

Dante

-- 
------
D. Dante Lorenso
dante at lorenso.com
http://www.lorenso.com/dante
-------------- next part --------------
;;
;; Michael A. Griffith's .emacs
;; $Id$
;;

;; Disable annoying ESC-ESC message

(put 'eval-expression 'disabled nil)

;; C/C++ style issues

(setq-default c-tab-always-indent t)
(setq-default c-auto-newline 1)
(setq-default c-indent-level 3)
(setq-default c-continued-statement-offset 3)
(setq-default c-continued-brace-offset 0)
(setq-default c-brace-offset -3)
(setq-default c-brace-imaginary-offset 0)
(setq-default c-argdecl-indent -3)
(setq-default c-label-offset -2)
(setq-default c++-tab-always-indent t)
(setq-default c++-electric-semi t)
(setq-default c++-electric-brace t)
(setq-default c++-electric-pound t)
(setq-default c++-friend-offset -2)
(setq-default c++-always-arglist-indent-p t)
(setq-default c++-auto-hungry-initial-state t)
(setq-default c++-hanging-braces nil)


;; Enable a major mode by default

(setq default-major-mode 'indented-text-mode)

;; Stuff regarding colors and fonts

(if window-system
    (progn

      ;; Setup font lock universally

      (require 'font-lock)
      (global-font-lock-mode t)

      ;; Change the default colors
	      
      (set-foreground-color "white")
      (set-background-color "#000000")
      ))

;; Hot keys

(global-set-key [C-prior] 'beginning-of-buffer)
(global-set-key [C-next] 'end-of-buffer)
(global-set-key [f1] 'goto-line)
(global-set-key [f3] 'dabbrev-dexpand)
(global-set-key [f4] 'call-last-kbd-macro)
(global-set-key [f5] 'next-error)
(global-set-key [f6] 'compile)
(global-set-key [f7] 'vc-toggle-read-only)
(global-set-key [f9] 'dabbrev-expand)
(global-set-key [f31] 'set-mark-command)


;; Display the time last so that we know everything else parsed OK.

(line-number-mode 1)
(load "time")
(setq display-time-day-and-date t)
(display-time)

;; Below this line the variables are set with M-x customize
(if '((emacs-major-version eq 20)) '(

(custom-set-variables
 '(font-lock-maximum-decoration t)n
 '(font-lock-verbose t))
(custom-set-faces
 '(font-lock-comment-face ((((class color) (background dark)) (:italic t :foreground "grey"))))
 '(font-lock-string-face ((((class color) (background dark)) (:italic t :foreground "green"))))
 '(font-lock-keyword-face ((((class color) (background dark)) (:foreground "plum"))))
 '(font-lock-warning-face ((((class color) (background dark)) (:bold t :foreground "red"))))
 '(font-lock-variable-name-face ((((class color) (background dark)) (:foreground "cyan"))))
 '(font-lock-function-name-face ((((class color) (background dark)) (:bold t :foreground "lightsteelblue"))))
 '(font-lock-builtin-face ((((class color) (background dark)) (:bold t :foreground "purple")))))
))





More information about the svlug mailing list