From 00d0dfb24d415af4e9eb7d7fa1cb4ac34be7e6c5 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Sat, 19 Apr 2014 11:26:25 +0200 Subject: Update to muttrc and vimrc. --- mutt/alias.sh | 2 +- mutt/aliases.txt | 2 +- mutt/notify.sh | 2 +- muttrc | 21 ++++++++++++++------- newsbeuter/cache.db | Bin 935936 -> 935936 bytes newsbeuter/cache.db.lock | 2 +- vimrc | 12 +++++++++++- 7 files changed, 29 insertions(+), 12 deletions(-) diff --git a/mutt/alias.sh b/mutt/alias.sh index 3761901..209c50f 100755 --- a/mutt/alias.sh +++ b/mutt/alias.sh @@ -7,7 +7,7 @@ NEWALIAS=$(echo "${MESSAGE}" | grep ^"From: " | sed s/[\,\"\']//g | awk '{$1=""; if grep -Fxq "$NEWALIAS" $HOME/.mutt/aliases.txt; then : else - if [[ "$NEWALIAS" == "*Google*" ]] || [[ "$NEWALIAS" == "*no-reply*" ]]; then + if [[ "$NEWALIAS" != "*Google*" ]] || [[ "$NEWALIAS" != "*no-reply*" ]]; then echo "$NEWALIAS" >> $HOME/.mutt/aliases.txt; fi fi diff --git a/mutt/aliases.txt b/mutt/aliases.txt index 00f33b6..232edf1 100644 --- a/mutt/aliases.txt +++ b/mutt/aliases.txt @@ -1,6 +1,6 @@ alias spasoevich-anita alias hansson-matthew -alias marcus-begic +alias begic-marcus alias fleetwood-leslie Leslie Fleetwood alias antoaneta-sofronieva toni_sfr@mail.bg alias entertainment-blizzard Blizzard Entertainment diff --git a/mutt/notify.sh b/mutt/notify.sh index f7b44b5..673dbd5 100755 --- a/mutt/notify.sh +++ b/mutt/notify.sh @@ -2,6 +2,7 @@ # # Turns on Numlock +echo "$1" echo "$1" | grep -q "New" > /dev/null 2>&1 if [ $? -eq 0 ]; @@ -12,4 +13,3 @@ else xset -led 1 fi -echo "$1" diff --git a/muttrc b/muttrc index f1ebfce..4440548 100644 --- a/muttrc +++ b/muttrc @@ -76,7 +76,21 @@ set pager_stop # Bindings bind index,pager "n" next-unread +bind index,pager "N" search-next +bind browser d half-down +bind index d half-down +bind pager d half-down + +bind browser u half-up +bind index u half-up +bind pager u half-up + +bind index gg first-entry +bind pager gg top +bind index G last-entry +bind pager G bottom +bind index R group-reply # Write in Aliases when opening email set display_filter='$HOME/.mutt/alias.sh' @@ -88,11 +102,4 @@ set status_format="$HOME/.mutt/notify.sh '%r %f (%L) [Msgs:%?M?%M/?%m%?n? New:%n macro pager \cb 'urlview' 'Follow links with urlview' -bind index gg first-entry -bind index G last-entry -bind index R group-reply - -# Status Bar -set status_chars = " *%A" -set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───" diff --git a/newsbeuter/cache.db b/newsbeuter/cache.db index 9c87585..daf83bf 100644 Binary files a/newsbeuter/cache.db and b/newsbeuter/cache.db differ diff --git a/newsbeuter/cache.db.lock b/newsbeuter/cache.db.lock index ac037cd..f37f2af 100644 --- a/newsbeuter/cache.db.lock +++ b/newsbeuter/cache.db.lock @@ -1 +1 @@ -2508 \ No newline at end of file +23888 \ No newline at end of file diff --git a/vimrc b/vimrc index f2baf7b..95bbaee 100644 --- a/vimrc +++ b/vimrc @@ -74,9 +74,19 @@ set nobackup au CursorHold,CursorHoldI * checktime "au CursorHold,CursorHoldI * silent! wa filetype plugin on -filetype indent on +filetype indent off let g:tex_flavor='latex' "Persisten-undo magic set undofile + +"Disable Autocomment +autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o + +"Latex PDF magic +let g:Tex_DefaultTargetFormat = 'pdf' +let g:Tex_MultipleCompileFormats='pdf, aux' + +"Math with qalc +nnoremap m :.!qalc -- cgit v1.2.3-54-g00ecf