tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: jain () pascal ! physics ! smu ! edu (Rakesh Jain)
To: tru64-unix-managers
Subject: SUMMARY: Smart Emacs
Date: Wed, 19 Mar 1997 18:17:05 +0000	[thread overview]
Message-ID: <96078609810496.tru64-unix-managers.marc@archive.invalid> (raw)

hello,

	here is the summary of my question. (I have the question listed below)
Thanks to all of you who replied. 
Special thanks to "Jeffrey G. Micono 6533 (Ktech)" <jgmicon@sandia.gov>
whose comments were right on the dot.


thanks
rakesh

-------------------question--------------------------------
hi there,

	which version of emacs support the color options for a language editor.
(change color for different part of the program)

-------------------question--------------------------------


From sandia.gov!jgmicon Wed Mar 19 10:28:16 1997
Return-Path: <jgmicon@sandia.gov>
Received: by pascal.physics.smu.edu (/\oo/\ Smail3.1.29.1 #29.5)
	id <m0w7ODn-000RAxC@pascal.physics.smu.edu>; Wed, 19 Mar 97 10:28 CST
Received: from aragorn (sada023.tpa.sandia.gov [134.253.237.161]) by sass165.sandia.gov (8.6.12/8.6.12) with SMTP id JAA05408 for <jain@pascal.physics.smu.edu>; Wed, 19 Mar 1997 09:29:43 -0700
Received: from localhost by aragorn; (5.65v3.2/1.1.8.2/21Nov95-0405PM)
	id AA00243; Wed, 19 Mar 1997 09:28:12 -0700
Sender: jgmicon@sass165.sandia.gov
Message-Id: <3330141B.31D2@sandia.gov>
Date: Wed, 19 Mar 1997 09:28:11 -0700
From: "Jeffrey G. Micono 6533 (Ktech)" <jgmicon@sandia.gov>
Organization: Sandia National Laboratories Mercenary
X-Mailer: Mozilla 3.0 (X11; I; OSF1 V3.2 alpha)
Mime-Version: 1.0
To: Rakesh Jain <jain@pascal.physics.smu.edu>
Subject: Re: Smart Emacs...
References: <m0w7Nd1-0009e3C@smuhep1.physics.smu.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Status: O

Jain,

Version 19 supports this, but you will need the
to load the emacs library hilit19.el to support it fully:

(load-library "hilit19.el")

hilit19.el comes with the emacs 19 distribution. 

Jeff
-- 

  __/ __/ __/ __/ __/ __/ __/ __/ __/ __/ __/ __/ __/ __/ __/ __/ 

     Jeffrey G. Micono                            505.844.6767
     Ktech Corporation                            505.268.3379

  __/ __/ __/ __/ __/ __/ __/ __/ __/ __/ __/ __/ __/ __/ __/ __/

From jbsvax.eksystems.com!barnwell Wed Mar 19 10:28:31 1997
Return-Path: <barnwell@jbsvax.eksystems.com>
Received: by pascal.physics.smu.edu (/\oo/\ Smail3.1.29.1 #29.5)
	id <m0w7ODy-000RAxC@pascal.physics.smu.edu>; Wed, 19 Mar 97 10:28 CST
Date: Wed, 19 Mar 1997 11:26:23 -0500
Message-Id: <97031911262366@jbsvax.eksystems.com>
Reply-To: barnwell@eksystems.com
From: barnwell@jbsvax.eksystems.com (Barnwell@eksystems.com voice 508-303-6905)
To: jain@pascal.physics.smu.edu
Subject: Re: Smart Emacs...
X-VMS-To: SMTP%"jain@pascal.physics.smu.edu"
Status: OR

both emacs ( we use 19.30 but I think its worked since 19.15 or so) and xemacs

try entering font-lock-mode



From hexadecimal.uoregon.edu!stevev Wed Mar 19 10:34:26 1997
Return-Path: <stevev@hexadecimal.uoregon.edu>
Received: by pascal.physics.smu.edu (/\oo/\ Smail3.1.29.1 #29.5)
	id <m0w7OJm-000RAxC@pascal.physics.smu.edu>; Wed, 19 Mar 97 10:34 CST
Received: (from stevev@localhost)
	by hexadecimal.uoregon.edu (8.8.5/8.8.5) id IAA06773;
	Wed, 19 Mar 1997 08:34:24 -0800 (PST)
Date: Wed, 19 Mar 1997 08:34:24 -0800 (PST)
Message-Id: <199703191634.IAA06773@hexadecimal.uoregon.edu>
From: Steve VanDevender <stevev@hexadecimal.uoregon.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: jain@pascal.physics.smu.edu (Rakesh Jain)
Subject: Smart Emacs...
In-Reply-To: <m0w7Nd1-0009e3C@smuhep1.physics.smu.edu>
References: <m0w7Nd1-0009e3C@smuhep1.physics.smu.edu>
Status: OR

Rakesh Jain writes:
 > hi there,
 > 
 > 	which version of emacs support the color options for a language editor.
 > (change color for different part of the program)
 > 
 > Thanks
 > Rakesh

Try GNU Emacs 19.34 (from prep.ai.mit.edu:pub/gnu/emacs-19.34.tar.gz) or
XEmacs 19.14 (soon to be 19.15) from ftp.xemacs.org:pub/xemacs.

From sol.cstp.umkc.edu!stous Wed Mar 19 11:56:51 1997
Return-Path: <stous@sol.cstp.umkc.edu>
Received: by pascal.physics.smu.edu (/\oo/\ Smail3.1.29.1 #29.5)
	id <m0w7PbW-000RAzC@pascal.physics.smu.edu>; Wed, 19 Mar 97 11:56 CST
Received: (from stous@localhost)
	by sol.cstp.umkc.edu (8.8.5/SMI-SVR4) id LAA26305
	for jain@pascal.physics.smu.edu; Wed, 19 Mar 1997 11:56:47 -0600 (CST)
From: Mikel Stous <stous@ctr.cstp.umkc.edu>
Message-Id: <199703191756.LAA26305@sol.cstp.umkc.edu>
Subject: Re: Smart Emacs...
To: jain@pascal.physics.smu.edu (Rakesh Jain)
Date: Wed, 19 Mar 1997 11:56:46 -0600 (CST)
In-Reply-To: <m0w7Nd1-0009e3C@smuhep1.physics.smu.edu> from "Rakesh Jain" at Mar 19, 97 09:50:14 am
X-Mailer: ELM [version 2.4 PL24 PGP3 *ALPHA*]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Status: O

Rakesh Jain wrote:
> 
> hi there,
> 
> 	which version of emacs support the color options for a language editor.
> (change color for different part of the program)
> 

I think they have for a long while.  

Here's a copy of one of my emacs power users ".emacs" file.  I'm not an expert
but you can email him how-to set it up.  He's  rhalker@cstp.umkc.edu

Mikel


-------------.emacs------------------

(setq inihibit-default-init t)
(setq c-echo-syntactic-information-p t)
(setq gnus-default-nntp-server "news.umkc.edu")
(setq Info-default-directory "/usr/local/info")
(transient-mark-mode t)

(display-time);;displays the time

(setq load-path (cons "/s/localfw/ravi/e/emacs/cc-mode" load-path))
(setq load-path (cons "/s/localfw/ravi/e/emacs/html-helper-mode" load-path))


(require 'cc-mode)
(setq font-lock-maximum-decoration t)

(require 'font-lock)
(setq display-time-day-and-date t)

(setq-default c-basic-offset 4)

(setq c-auto-newline t)
(setq c-indent-level 3)
(setq c-continued-statement-offset 2)
(setq c-argdecl-indent 3)
(setq c-brace-offset 1)

(setq c-label-offset 3)

(add-hook 'c-mode-hook 'turn-on-font-lock)
(global-font-lock-mode 1)

;;(make-face-italic 'font-lock-comment-face)
(setq font-lock-support-mode 'lazy-lock-mode)
(setq font-lock-support-mode 'fast-lock-mode)
(setq font-lock-maximum-decoration
      '((c-mode . t) (c++-mode . t)))

(add-hook 'c-mode-common-hook '(lambda () (c-toggle-auto-hungry-state 1)))

(add-hook 'font-lock-mode-hook 'turn-on-fast-lock)
(setq lpr-add-switches t)

(global-set-key [S-tab] 'dabbrev-expand);;dynamic command competion in C Shift-tab
;(global-set-key [RET] 'newline-and-indent)
(define-key c-mode-map "\C-m" 'newline-and-indent)

;;(setq c-set-offset 'case-label '*)
;;(setq  c-set-offset 'statement-case-intro '*)

;;(define-key c-mode-map RET 'newline-and-indent)

(cond (window-system
       (set-face-background 'highlight "RoyalBlue")))

;(setq baud-rate 5);;to change the scroll speed
                                                    


(font-lock-make-faces t)

(setq frame-title-format '("%b : " default-directory " (" current-machine ")"))
;; set the frame title with full path


;;(setq load-path (cons "/s/localfw/e/emacs/cc-mode" load-path))

;;(defun my-font-lock-setup ()
;;    (set-face-foreground font-lock-comment-face "moccasin")
;;    (set-face-foreground font-lock-type-face    "pink")
;;    (remove-hook 'font-lock-mode-hook 'my-font-lock-setup))

;;  (and window-system
;;       (add-hook 'font-lock-mode-hook 'my-font-lock-setup))
;;
;;     (fmakunbound 'c-mode)
;;     (makunbound  'c-mode-map)
;;     (fmakunbound 'c++-mode)
;;     (makunbound  'c++-mode-map)
;;     (makunbound  'c-style-alist)
;;(require 'cc-mode)
;;(setq auto-mode-alist
;;       (append
;;         '(("\\.C$"  . c++-mode)
;;          ("\\.H$"  . c++-mode)
;;           ("\\.
;;           ("\\.h$"  . c-mode)
;;           ("\\.m$"  . objc-mode)
;;          ) auto-mode-alist))
;;(autoload 'c++-mode  "cc-mode" "C++ Editing Mode" t)
;;     (autoload 'c-mode    "cc-mode" "C Editing Mode" t)
;;     (autoload 'objc-mode "cc-mode" "Objective-C Editing Mode" t)
;;
;;Version 2.4.1 is obsolete, so that URL won't work anymore.  The
;;current version can be grabbed at
;;
;;   ftp://ftp.python.org/pub/emacs/cc-mode-4.282.tar.gz
;;
;;It looks like the "current version" is also presented by a soft
;;link, so perhaps this would be better:
;;
;;   ftp://ftp.python.org/pub/emacs/cc-mode.tar.gz
(make-face-italic 'font-lock-comment-face)

(setq hilit-mode-enable-list '(Info-mode dired-mode))
(require 'hilit19)

;; for html-mode

;(require 'html-helper-mode)
;(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)
;(setq auto-mode-alist (cons '("\\.html$" . html-helper-mode)
;                           auto-mode-alist))
                                                           

;(add-hook 'html-helper-load-hook '(lambda () (require 'html-font)))
(copy-face             'bold 'font-lock-keyword-face) ; or italic/...
(set-face-foreground         'font-lock-keyword-face "Gold");;"ForestGreen")
(setq font-lock-keyword-face 'font-lock-keyword-face)
(setq font-lock-verbose t)

;(add-hook 'html-helper-mode-hook '(lambda () (font-lock-mode 1)))

;(setq html-helper-do-write-file-hooks t)
;(setq html-helper-build-new-buffer t)
;(setq html-helper-address-string
;  "<a href=\"http://www.santafe.edu/~nelson/\">Nelson Minar &lt;nelson@santafe.edu&gt;</a>")

From digitalink.com!joe.wilson Wed Mar 19 12:11:14 1997
Return-Path: <joe.wilson@digitalink.com>
Received: by pascal.physics.smu.edu (/\oo/\ Smail3.1.29.1 #29.5)
	id <m0w7PpR-000RAzC@pascal.physics.smu.edu>; Wed, 19 Mar 97 12:11 CST
Received: from mjolnir.digitalink.com by excaliber.digitalink.com; (5.65v3.0/1.1.8.2/15Jan96-0459PM)
	id AA32716; Wed, 19 Mar 1997 13:19:30 -0500
Received: from argos by mjolnir.digitalink.com; (5.65v3.2/1.1.8.2/10Jan96-0415PM)
	id AA18778; Wed, 19 Mar 1997 13:10:37 -0500
Sender: root@mjolnir.digitalink.com
Message-Id: <33302C1A.276A4F71@digitalink.com>
Date: Wed, 19 Mar 1997 13:10:34 -0500
From: Joe Wilson <joe.wilson@digitalink.com>
Organization: washingtonpost.com
X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.29 i586)
Mime-Version: 1.0
To: Rakesh Jain <jain@pascal.physics.smu.edu>
Subject: Re: Smart Emacs...
References: <m0w7Nd1-0009e3C@smuhep1.physics.smu.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Status: OR

Rakesh Jain wrote:
>         which version of emacs support the color options for a language editor.
> (change color for different part of the program)

That is a function of the Lisp add-ins you choose to install. 
Unfortunately, I have only ever used the Fortran add-in and I don't
remember what the file names are.

J

-- 
 *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*
  *#
   *#   Joe Wilson              Digital Ink - www.washingtonpost.com
    *#   Systems Analyst	Programmer  (C, C++, DOS, VB, Windows, UNIX)
     *#   (703) 469-2644            1560 Wilson Blvd, Arlington, VA 
22209
      *#
       *#   He who can no longer pause to wonder and stand rapt in awe,
        *#     is as good as dead; his eyes are closed.  --Albert
Einstein
         *#
         
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*

                 reply	other threads:[~1997-03-19 18:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox