summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--crontab1
-rw-r--r--latexmkrc6
-rw-r--r--mutt/cache/headersbin642304 -> 751872 bytes
-rw-r--r--mutt/colormutt2
-rw-r--r--tmux.conf1
-rw-r--r--vim/after/ftplugin/tex/folding.vim68
-rw-r--r--vim/mySnippets/tex.snippets38
-rw-r--r--zshrc6
9 files changed, 76 insertions, 49 deletions
diff --git a/.gitignore b/.gitignore
index 5754d55..01086ff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,8 @@
mutt/cache/headers
+mutt/mailboxes
vim/bundle/
vifm/Trash/
mutt/mutt-colors-solarized/
mutt/temp/
passwords
-mutt/cache/
+mutt/cache/*
diff --git a/crontab b/crontab
index e90313f..c74bd5f 100644
--- a/crontab
+++ b/crontab
@@ -1 +1,2 @@
*/10 * * * * /usr/bin/offlineimap -u quiet
+*/5 * * * * sh ~/.xmodmap
diff --git a/latexmkrc b/latexmkrc
index b466d7b..5f66094 100644
--- a/latexmkrc
+++ b/latexmkrc
@@ -1,2 +1,4 @@
-$pdf_mode = 1;
-$pdf_previewer = 'zathura -s -x "vim --servername SYNCTEX --remote +%{line} %{input}" %O %S';
+$pdf_mode = 0;
+$pdf_previewer = 'zathura -s -x "vim --servername SYNC --remote +%{line} %{input}" %O %S';
+$clean_ext = "synctex.gz bbl pdf";
+
diff --git a/mutt/cache/headers b/mutt/cache/headers
index 76ae554..3eec6b3 100644
--- a/mutt/cache/headers
+++ b/mutt/cache/headers
Binary files differ
diff --git a/mutt/colormutt b/mutt/colormutt
index 51e9da1..d0e1225 100644
--- a/mutt/colormutt
+++ b/mutt/colormutt
@@ -3,7 +3,7 @@ h=`date +%H`
if [ $h -lt 9 ]; then
theme=dark
-elif [ $h -lt 17 ]; then
+elif [ $h -lt 18 ]; then
theme=light
else
theme=dark
diff --git a/tmux.conf b/tmux.conf
index 439680e..c4388e6 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -1,3 +1,4 @@
set -g default-terminal "screen-256color"
set -g mode-mouse on
set -g mouse-resize-pane on
+set -g mouse-select-pane on
diff --git a/vim/after/ftplugin/tex/folding.vim b/vim/after/ftplugin/tex/folding.vim
index 2e8b612..096c8a9 100644
--- a/vim/after/ftplugin/tex/folding.vim
+++ b/vim/after/ftplugin/tex/folding.vim
@@ -1,34 +1,34 @@
-function! TexFolds()
- let thisline = getline(v:lnum)
- if match(thisline,'^\\chapter') >= 0
- return ">1"
- elseif match(thisline,'^\\section') >= 0
- return ">1"
- elseif match(thisline,'^\\subsection') >=0
- return ">1"
- elseif match(thisline,'^\\subsubsection') >=0
- return ">1"
- else
- return "="
- endif
-endfunction
-
-function! TexFoldText()
- let startline = getline(v:foldstart)
- let title = substitute(startline,'^.*{\(.*\)}.*$','\1',"")
- if match(startline,'^\\chapter') >= 0
- return '*' . title . ''
- elseif match(startline,'^\\section') >= 0
- return ' # ' . title
- elseif match(startline,'^\\subsection') >=0
- return ' ## ' . title
- elseif match(startline,'^\\subsubsection') >=0
- return ' ### ' . title
- else
- echom "Error, fold not recognized"
- endif
-endfunction
-
-setlocal foldmethod=expr
-setlocal foldexpr=TexFolds()
-setlocal foldtext=TexFoldText()
+" function! TexFolds()
+" let thisline = getline(v:lnum)
+" if match(thisline,'^\\chapter') >= 0
+" return ">1"
+" elseif match(thisline,'^\\section') >= 0
+" return ">1"
+" elseif match(thisline,'^\\subsection') >=0
+" return ">1"
+" elseif match(thisline,'^\\subsubsection') >=0
+" return ">1"
+" else
+" return "="
+" endif
+" endfunction
+"
+" function! TexFoldText()
+" let startline = getline(v:foldstart)
+" let title = substitute(startline,'^.*{\(.*\)}.*$','\1',"")
+" if match(startline,'^\\chapter') >= 0
+" return '*' . title . ''
+" elseif match(startline,'^\\section') >= 0
+" return ' # ' . title
+" elseif match(startline,'^\\subsection') >=0
+" return ' ## ' . title
+" elseif match(startline,'^\\subsubsection') >=0
+" return ' ### ' . title
+" else
+" echom "Error, fold not recognized"
+" endif
+" endfunction
+"
+" setlocal foldmethod=expr
+" setlocal foldexpr=TexFolds()
+" setlocal foldtext=TexFoldText()
diff --git a/vim/mySnippets/tex.snippets b/vim/mySnippets/tex.snippets
index ff3fc0a..0fba4e8 100644
--- a/vim/mySnippets/tex.snippets
+++ b/vim/mySnippets/tex.snippets
@@ -11,7 +11,7 @@ snippet div "Divergence" i
endsnippet
snippet new "New command" b
-\newcommand{$1}[$2]{$3} $0
+\newcommand{$1}[$2]{$3}$0
endsnippet
snippet op "Operator style" i
@@ -19,11 +19,11 @@ snippet op "Operator style" i
endsnippet
snippet pard "Partial derivative" i
-\pardl{$1}{$2} $0
+\pardl{$1}{$2}$0
endsnippet
snippet pardd "Double partial derivative" i
-\parddl{$1}{$2} $0
+\parddl{$1}{$2}$0
endsnippet
snippet herm "Hermite polynomials" i
@@ -31,11 +31,11 @@ snippet herm "Hermite polynomials" i
endsnippet
snippet red "Red text" i
-\red{$1} $0
+\red{$1}$0
endsnippet
snippet sumi "Sum over index set" i
-\sum_{${1:i} \in ${2:I}} $0
+\sum_{${1:i} \in ${2:I}}$0
endsnippet
snippet int "Integral" i
@@ -51,11 +51,11 @@ snippet norm "Norm" i
endsnippet
snippet test "Test functions" i
-\test{${1:\real^n}} $0
+\test{${1:\real^n}}$0
endsnippet
snippet lp "Flat Lp space" i
-\lp{${1:2}}{${2:\real^n}} $0
+\lp{${1:2}}{${2:\real^n}}$0
endsnippet
snippet lpw "Weighted Lp space" i
@@ -63,11 +63,31 @@ snippet lpw "Weighted Lp space" i
endsnippet
snippet sob "Flat Sobolev space" i
-\sobolev{${1:s}}{${2:\real^n}} $0
+\sobolev{${1:s}}{${2:\real^n}}$0
endsnippet
snippet sobw "Weighted Sobolev space" i
-\wsobolev{${1:s}}{${2:\real^n}}{${3:\rho}} $0
+\wsobolev{${1:s}}{${2:\real^n}}{${3:\rho}}$0
+endsnippet
+
+snippet cont "Continuous function" i
+\cont{$1}{$2}$0
+endsnippet
+
+snippet mean "Expectation" i
+\expect $0
+endsnippet
+
+snippet dot "Dot product" i
+\dotx
+endsnippet
+
+snippet abs "Absolute value" i
+\abs{ $1 }$0
+endsnippet
+
+snippet sum "Sum" i
+\sum_{${1:i=1}}^{${2:n}}
endsnippet
snippet smooth "Smooth function" i
diff --git a/zshrc b/zshrc
index e97b90d..7a3f4b6 100644
--- a/zshrc
+++ b/zshrc
@@ -50,10 +50,9 @@ alias cdd='cd ~/dotfiles'
alias tmux="TERM=screen-256color-bce tmux"
alias g='git'
alias v=$EDITOR
-alias tmux="TERM=screen-256color-bce tmux"
alias g='git'
alias v='vim'
-alias vs="vim --servername SYNCTEX"
+alias vs="vim --servername SYNC"
alias c='clear'
alias m='mutt'
alias a='vifm'
@@ -63,6 +62,9 @@ alias mail='offlineimap'
alias ca='printf "\ec"'
alias update='sudo apt-get update'
alias upgrade='sudo apt-get upgrade'
+alias install='sudo apt-get install'
+alias remove='sudo apt-get autoremove'
+alias purge='sudo apt-get purge'
# Configuration
alias ez='vim ~/.zshrc'