Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
From: GregKH <gregkh@linuxfoundation.org>
To: kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: Re: Questions to article - Patch Workflow With Mutt
Date: Mon, 7 Oct 2019 08:02:33 +0200
Message-ID: <20191007060233.GB271894@kroah.com> (raw)
In-Reply-To: <20191006081221.GA25120@portage>

[-- Attachment #1: Type: text/plain, Size: 904 bytes --]

On Sun, Oct 06, 2019 at 10:12:21AM +0200, Oliver Graute wrote:
> Hello GregKH,
> 
> Many thanks for this blog post. Its always useful to see how developers
> use their tools. Which terminal and mutt color scheme do you use there?
> 
> http://kroah.com/log/blog/2019/08/14/patch-workflow-with-mutt-2019/

The asciicinema terminals there are using it's own built-in format, so
it's not a "real" terminal at all.

Only the last youtube vide shows my real terminal settings.  I use
Terminology, and then my script pops up a Tilix terminal with the patch
in it (for various reasons due to how Terminology handles things).

As for color scheme, who knows, it's based on a really really old muttrc
file from a long time ago that I found online, and touched up here and
there.  I've attached it here if people are really bored and want a good
laugh.

Include it in your main .muttrc file and have fun!

greg k-h

[-- Attachment #2: .muttrc.black --]
[-- Type: text/plain, Size: 6833 bytes --]

## =============================================================
## Color definitions - See the manual.txt at
## "The Pager" and "Using color and mono video attributes"
## =============================================================

## From the manual to mutt-0.96.3:
## Objects that you can colorize:
##      attachment, body, bold, error, header, hdrdefault,
##      index, indicator, markers, message, normal,
##      quoted, quoted1, ..., quotedN,
##      search, signature, status, tilde, tree, underline.
## Color names you can use for "background" and "foreground":
##      white black green magenta blue cyan yellow red default colorx
   
#   color normal      white  black  # pager body
   color normal      default  default  # pager body
   
   color attachment  green  black  # ..
#  color body        green  black  # ..
   
#  match ftp addresses:
#  color "default" is not known any more?
#  color body cyan default "ftp://[^ ]*"
   color body cyan black   "ftp://[^ ]*"
#  match http addresses:
#  color "default" is not known any more?
   color body        green   default "[[:alnum:]][-+.#_[:alnum:]]*@[-+.[:alnum:]]*[[:alnum:]]"
#
#  Colorize "Internet addresses":
   color body        cyan    default "(http|ftp|news|telnet|finger)://[^ >]*"
   color body        cyan    default "<URL:[^ ]*>"
   color error       red     default  # global
#
# NEW color scheme for header:
   color header      blue     default  "^cc:"
   color header      yellow   default  "^date:"
   color header      green    default  "^from"
   color header      cyan     default  "^from:"
   color header      cyan     default  "^to:"
   color header      yellow   default  "^importance:"
   color header      blue     default  "^importance: normal"
   color header      green    default  "^message-id:"
   color header      white    red      "^newsgroups:"
   color header      blue     default  "^organi[sz]ation:"
   color header      yellow   default  "^priority:"
   color header      red      white    "^priority: urgent"
   color header      blue     default  "^priority: normal"
   color header      yellow   default  "^reply-to:"
#  color header      white    blue     "^subject: "  # white on blue!
   color header      default  blue     "^subject:"  # white on blue!
# special color for replies to posts on Usenet:
   color header      red      white    "^to: guckes-usenet"
   color header      yellow   default  "^user-agent:"
# special color for good user agents - mutt and xemacs:
   color header      blue     default  "^user-agent: .*mutt"
   color header      blue     default  "^X-Mailer: .*xemacs"
# pine and tin:
   color header      red      default  "^user-agent: .*pine"
   color header      red      default  "^user-agent: .*tin"
   color header      blue     default  "^x-editor: .*vim"
   color header      yellow   default  "^x-mailer:"
# Old Pine versions only identify by the message id:
   color header      red      default  "^message-id: .*pine"
# special color for "Mozilla" mailer (aka Netscape)
   color header      white    red      "^x-mailer: mozilla"
   color header      magenta  default  "^x-newsreader:"
   color header      white    red      "^x-newsreader: .*trn"
# tin puts its info on CCs into an extra line:
   color header      white    red      "^x-also-posted-to: "
   color header      white    red      "^x-webtv-signature: "
# Lotus-Schmotus:
  color header       white    red      "^x-lotus-fromdomain: "
  color header       white    red      "^X-Mailer: Lotus Notes"
# M$ sucks:
# X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
  color header       white    red      "^X-Mailer: Internet Mail Service"
  color header       white    red      "^X-Mailer: .*Microsoft Outlook"
# AK-Mail users do not seem to be able to type, either:
  color header       white    red      "^X-Mailer: .*AK-Mail"
   
   
#
#  color hdrdefault  blue   black  #
#  color indicator   white  blue   # index
   color indicator   default  blue   # index
#   color markers     red    default# index
   color markers     yellow    default# index
color	attachment	yellow	default
#  color message     white  blue   # index
   color message     default  blue   # index
   
## ==================================================
## Colorizing the body of messages (ie in the pager)
## ==================================================
   
#  Coloring quoted text - coloring only the first four levels:
color quoted	cyan	default
color quoted1	yellow	default
color quoted2	red	default
color quoted3	green	default
color quoted4	cyan	default
color quoted5	yellow	default
color quoted6	red	default
color quoted7	green	default

#color signature	red	default
#color signature	blue	default
#color signature	yellow	default
color signature	magenta	default

# change the color of the gpg output
color body	green	default	"^gpg: "

#color status	white	blue	# index status bar default: black white
color status	default	blue	# index status bar default: black white
color tilde	blue	default	# pager body
color tree	red	default	# index
   
color bold	green	default # ..
color underline	yellow	default #
#  How this works:  Mutt recognizes sequences with embedded CTRL-H ('^H').
#  If this matches one of the following kinds
#  then you get to see the text as either "bold text" or "underlined text"
#  depending on the capabilities of your terminal.
#  bold:       "c" -> "bold 'c'"
#  underline:  "_" -> "underlined 'c'"
#  On color terminals you will see them with their own color.
  
   color body        blue   red     "<[Gg]>"
   color body        blue   red     "<[Bb][Gg]>"
#  Colorize smileys:  :-)  ;-)  :-/  :-(
   color body        yellow black   "[;:]-[)/(|]"


#  Remember:  Order counts!  The last matching rule "wins".
#  So we'll start with some general rules first:
#
#  mail to myself (personal mail):
#color	index	magenta	default		'~p'

#  mail NOT to myself (unpersonal mail):
#color index magenta   black  '! ~p'

#  mail from important people (like myself ;-):
#color index    cyan     default  '~f (greg@kroah.com\|greg@wirex.com)'

# SPAM?!
#  color index magenta black  '! ~p ~f
#  @(aol\|hotmail\|msn\|prodigy\|yahoo)\.(com'
# color index magenta black '~f
# @(aol\|hotmail\|msn\|prodigy\|yahoo)\.(com\|net)'
#  color index magenta black  '! ~p ~f @compulink.nlrs.com'
#  color index magenta black  '! ~p ~f funtime'
#  color index magenta black  '! ~p ~f free'
#color index brightgreen default  '~s tgil'
#color index brightgreen default  '~s gtrouble'
#color index brightgreen default  '~s gnerudite'
#  color index magenta black  '! ~p ~f worldnet.att.net'

#color index       magenta      default  ~F      # Flagged
#color index       blue         default  ~T      # Tagged
#color index	blue		default	~N	# New
color index	yellow		default	~N	# New
color index	magenta		default	~D	# Deleted


[-- Attachment #3: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-06  8:12 Oliver Graute
2019-10-07  6:02 ` GregKH [this message]

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191007060233.GB271894@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org kernelnewbies@archiver.kernel.org
	public-inbox-index kernelnewbies

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/ public-inbox