From 2ff12049d80a11a44d3bcb79bf7c2f2dd741ca85 Mon Sep 17 00:00:00 2001
From: Xiao Pan <gky44px1999@gmail.com>
Date: Sun, 7 Apr 2024 00:07:02 -0700
Subject: feat: mail filetype set colorcolumn remind me max line char

---
 home/xyz/.config/nvim/init.vim | 33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

(limited to 'home/xyz/.config/nvim')

diff --git a/home/xyz/.config/nvim/init.vim b/home/xyz/.config/nvim/init.vim
index dad0aef1..7164b414 100644
--- a/home/xyz/.config/nvim/init.vim
+++ b/home/xyz/.config/nvim/init.vim
@@ -54,6 +54,23 @@ augroup mycmd
 	" .csx seems not c# but c# script file, this works tho
 	" set syntax=cs also works
 	autocmd BufNewFile,BufRead *.csx setfiletype cs
+	" for alerting me plain text email characters per line
+	" neomutt auto set new email filetype as mail so this will work
+	" https://mailformat.dan.info/body/linelength.html suggested 65
+	"" https://superuser.com/q/827647/1282809
+	" https://lkml.org shows Linus seems use 70
+	" https://lkml.org Hottest messages shows people use around 70-80
+	" https://en.wikipedia.org/wiki/Characters_per_line
+	" related: textwidth
+	" if want to do this only for some file extensions, see:
+	" https://useplaintext.email/ suggest 72
+	"" https://stackoverflow.com/a/469576/9008720
+	"" don't forget to put in augroup:
+	"" https://stackoverflow.com/a/60470085/9008720
+	"" also other ways:
+	"" https://stackoverflow.com/q/158968/9008720
+	"autocmd FileType mail setlocal colorcolumn=72
+	autocmd FileType mail setlocal cc=72
 augroup END
 
 " :h markdown, for vim default tpope/vim-markdown
@@ -126,22 +143,6 @@ set smartcase
 " :h disable-mouse
 set mouse=
 
-" for alerting me plain text email characters per line
-" https://mailformat.dan.info/body/linelength.html suggested 65
-"" https://superuser.com/q/827647/1282809
-" https://lkml.org shows Linus seems use 70
-" https://lkml.org Hottest messages shows people use around 70-80
-" https://en.wikipedia.org/wiki/Characters_per_line
-" related: textwidth
-" if want to do this only for some file extensions, see:
-"" https://stackoverflow.com/a/469576/9008720
-"" don't forget to put in augroup:
-"" https://stackoverflow.com/a/60470085/9008720
-"" also other ways:
-"" https://stackoverflow.com/q/158968/9008720
-"set colorcolumn=70
-"set cc=70
-
 " map ctrl+h/j/k/l to move between split windows
 map <C-h> <C-w>h
 map <C-j> <C-w>j
-- 
cgit v1.2.3-70-g09d2