Article View: gnu.epoch.misc
Article #41Re: Using hiliting with cmushell mode
From: Marc Andreessen
Date: Thu, 23 Jul 1992 04:46
Date: Thu, 23 Jul 1992 04:46
37 lines
1936 bytes
1936 bytes
rickb@farfle.farfle.asd.sgi.com (Rick Braumoeller) writes:
: Hiliting is one of the most useful features of Epoch, IMHO. I would
: like to use it in cmushell mode, for various reasons. Thing is, I
: don't how to describe the mode line for CMUshell --
:
: (hilit::mode-list-update "CMU shell: run" cmushell-mode-hilit)
:
: doesn't seem to work. Does anybody know what I need to use for this?
You can try using this function, if you want to modify hilit.el:
;; Author: Lynn Slater (lrs@indetech.com).
(defun true-mode-name ()
"Returns the name of the mode in such a form that the mode may be
re-established by calling the function named by appending '-name' to
this string. This differs from the variable called mode-name in that
this is guaranteed to work while the values held by the variable may
have embedded spaces or other junk."
(let ((major-mode-name (symbol-name major-mode)))
(substring major-mode-name 0
(or (string-match "-mode" major-mode-name)
(length major-mode-name)))))
Using this instead of 'mode-name' will probably solve your problem.
(Of course, the strings that mode-name and true-mode-name return
are different.) Lightbrite (another highlighting package) uses this,
for this reason.
Hope this helps,
Marc
--
Marc Andreessen
Software Development Group
National Center for Supercomputing Applications
marca@ncsa.uiuc.edu
Technical Details
Message-ID:
<Brtrwz.1nr@news.cso.uiuc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!void.ncsa.uiuc.edu!marcaReferences:
<RICKB.92Jul22144428@farfle.farfle.asd.sgi.com>Show Full Headers
Complete Article Headers
Newsgroups: gnu.epoch.misc Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!void.ncsa.uiuc.edu!marca From: marca@void.ncsa.uiuc.edu (Marc Andreessen) Subject: Re: Using hiliting with cmushell mode References: <RICKB.92Jul22144428@farfle.farfle.asd.sgi.com> Message-ID: <Brtrwz.1nr@news.cso.uiuc.edu> Sender: usenet@news.cso.uiuc.edu (Net Noise owner) Organization: University of Illinois at Urbana Distribution: gnu Date: Thu, 23 Jul 1992 04:46:09 GMT Lines: 37