kaushalmodi / .emacs.d

My emacs configuration
MIT License
262 stars 49 forks source link

Create a major-mode for "log files" #6

Open kaushalmodi opened 9 years ago

kaushalmodi commented 9 years ago

Couple of basic features I have in mind:

shankarpdy commented 7 years ago

Looks good. Is this for any specific simulator - like ncsim ? If there is a code, I can test this out.

kaushalmodi commented 7 years ago

Is this for any specific simulator - like ncsim ?

Yes.

I haven't yet started working on this as I got something workable with the help of in-buffer Hi-Lock patterns -- Search for Examples of Hi-Lock patterns here.

That solves:

Highlight error/warning

.. which was the main reason I want a major mode.

For now, incremental search (C-s) takes care of:

Navigate to next error/warning

kaushalmodi commented 7 years ago

Actually I remembered I have already committed the .dir-local.el file for log files here. You also need to allow setting of hi-lock-file-patterns via .dir-local.el as safe.