Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mode for highlighting/annotating log files or other docs?

13 views
Skip to first unread message

Brendan Miller

unread,
Jun 23, 2010, 6:49:19 PM6/23/10
to help-gn...@gnu.org
I have to work with large log files, and often have trouble keeping
track of what's going on in different sections of the log.

I was thinking it would be great if I had a way to mark parts of the
text as different colors, so I had a visual way of keeping track of
different segments of my logs. Like, maybe just select a region and
issue a "make-blue" command or something like that.

Another idea would be to have a margin off to the left which I could
leave notes in.

Is there any mode that implements something like this?

Thanks,
Brendan

Brendan Miller

unread,
Jun 23, 2010, 7:17:48 PM6/23/10
to help-gn...@gnu.org
Ok, to answer my own question, you can just assign keybindings to
these commands in order to colorize text:

facemenu-set-default
facemenu-set-bold
facemenu-set-italic
facemenu-set-bold-italic
facemenu-set-underline
facemenu-set-face
facemenu-set-foreground

http://www.gnu.org/software/emacs/manual/html_node/emacs/Format-Faces.html#Format-Faces

2010/6/23 Brendan Miller <catp...@catphive.net>:

Message has been deleted

unfrostedpoptart

unread,
Jun 23, 2010, 10:19:01 PM6/23/10
to
On Jun 23, 4:17 pm, Brendan Miller <catph...@catphive.net> wrote:
> Ok, to answer my own question, you can just assign keybindings to
> these commands in order to colorize text:
>
> facemenu-set-default
> facemenu-set-bold
> facemenu-set-italic
> facemenu-set-bold-italic
> facemenu-set-underline
> facemenu-set-face
> facemenu-set-foreground
>
> http://www.gnu.org/software/emacs/manual/html_node/emacs/Format-Faces...
>
> 2010/6/23 Brendan Miller <catph...@catphive.net>:

>
>
>
> > I have to work with large log files, and often have trouble keeping
> > track of what's going on in different sections of the log.

I never knew about this and it looked interesting. However, when I
tried it, I found it is useless in any buffer that is using a font-
lock mode, which is 99% of everything I do.
Any way to get this to work, or something similar, for font-locked
buffers?

David

Fren Zeee

unread,
Jun 24, 2010, 1:05:56 AM6/24/10
to

I think a solution would help many people.

Message has been deleted

Vagn Johansen

unread,
Jun 24, 2010, 12:25:00 PM6/24/10
to
unfrostedpoptart <da...@therogoffs.com> writes:

hi-lock-mode

See the manual under "Interactive Highlighting"

--
Vagn Johansen

Drew Adams

unread,
Jul 2, 2010, 1:01:04 PM7/2/10
to Brendan Miller, help-gn...@gnu.org
> I have to work with large log files, and often have trouble keeping
> track of what's going on in different sections of the log.
>
> I was thinking it would be great if I had a way to mark parts of the
> text as different colors, so I had a visual way of keeping track of
> different segments of my logs. Like, maybe just select a region and
> issue a "make-blue" command or something like that.
>
> Another idea would be to have a margin off to the left which I could
> leave notes in.
>
> Is there any mode that implements something like this?


In addition to what others have mentioned to you, you might consider using
bookmarks.

With Bookmark+, you can tag bookmarks (in addition to annotating them), and you
can highlight them in various ways.

http://www.emacswiki.org/emacs/BookmarkPlus


0 new messages