Thread View: gnu.epoch.misc
2 messages
2 total messages
Started by Rick Braumoeller
Wed, 22 Jul 1992 22:44
Using hiliting with cmushell mode
Author: Rick Braumoeller
Date: Wed, 22 Jul 1992 22:44
Date: Wed, 22 Jul 1992 22:44
13 lines
919 bytes
919 bytes
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? Thanks in advance. ----- Rick Braumoeller rickb@asd.sgi.com Silicon Graphics, Inc. (415) 390-2034
Re: Using hiliting with cmushell mode
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads