summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--crontab1
-rw-r--r--header.tex27
-rw-r--r--latexmkrc6
-rw-r--r--mutt/colormutt2
-rw-r--r--mutt/mailboxes2
-rw-r--r--tmux.conf1
-rw-r--r--vim/mySnippets/tex.snippets38
-rw-r--r--zshrc23
9 files changed, 43 insertions, 59 deletions
diff --git a/.gitignore b/.gitignore
index 0b3f2c4..577cfc0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
+mutt/cache/
+mutt/mailboxes/
vim/bundle/
vifm/Trash/
mutt/mutt-colors-solarized/
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/header.tex b/header.tex
deleted file mode 100644
index 0c654ab..0000000
--- a/header.tex
+++ /dev/null
@@ -1,27 +0,0 @@
-% Macros
-\definecolor{darkred}{rgb}{.7,0,0}
-\newcommand{\real}[0]{\mathbf R}
-\newcommand{\nat}[0]{\mathbf N}
-\newcommand{\op}[0]{\mathcal}
-\newcommand{\grad}[0]{\nabla}
-\newcommand{\dive}[0] {\,\nabla\,\cdot\,}
-\newcommand{\ip}[2]{\left \langle #1,#2 \right\rangle}
-\newcommand{\norm}[1]{\left\| #1 \right\|}
-\newcommand{\pard}[2]{\partial_{#2} #1}
-\newcommand{\pardl}[2]{\frac{\partial #1}{\partial #2}}
-\newcommand{\pardd}[2]{\partial_{#2}^2 #1}
-\newcommand{\parddl}[2]{\frac{\partial^2 #1}{\partial #2^2}}
-\newcommand{\dd}[0]{\,\mathrm d}
-\newcommand{\hermite}[0]{\mathcal}
-\newcommand{\gaussian}[1]{g_{#1}}
-\newcommand{\stdgaussian}[0]{g}
-\newcommand{\test}[1]{C^\infty_c(#1)}
-\newcommand{\flp}[2]{L^{#1}(#2)}
-\newcommand{\wlp}[3]{L^{#1}(#2,#3)}
-\newcommand{\sobolev}[2]{H^{#1}(#2)}
-\newcommand{\wsobolev}[3]{H^{#1}(#2, #3)}
-\newcommand{\red}[1]{\textcolor{darkred}{#1}}
-\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
-\newcommand{\smooth}[1]{C^\infty(#1)}
-\newcommand{\cont}[2]{C^{#1}(#2)}
-\newcommand{\Space}[0]{\mathscr}
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/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/mutt/mailboxes b/mutt/mailboxes
index d259b41..9e64508 100644
--- a/mutt/mailboxes
+++ b/mutt/mailboxes
@@ -1 +1 @@
-mailboxes "+Gmail/Gmail" "+Hotmail/Hotmail" "+Imperial/Imperial" "+Main/Drafts" "+Main/Main" "+Main/Sent"
+mailboxes "+Hotmail/Hotmail" "+Main/Drafts" "+Main/Main" "+Main/Sent" "+Gmail/Gmail" "+Imperial/Imperial"
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/mySnippets/tex.snippets b/vim/mySnippets/tex.snippets
index 0f64ef6..fb061f0 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 cadd3cd..fe823d3 100644
--- a/zshrc
+++ b/zshrc
@@ -10,9 +10,6 @@ ENABLE_CORRECTION="true"
# Dots for completion
COMPLETION_WAITING_DOTS="true"
-# Would you like to use another custom folder than $ZSH/custom?
-# ZSH_CUSTOM=/path/to/new-custom-folder
-
# Plugins
plugins=(vi-mode git)
@@ -50,10 +47,9 @@ alias cdd='cd ~/Dropbox/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 +59,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'
alias push='git push origin master'
alias pull='git pull origin master'
alias commit='git commit -a -m "auto-commit"'
@@ -81,19 +80,5 @@ alias ex='vim ~/.xmodmap'
bindkey -a 'k' history-beginning-search-backward
bindkey -a 'j' history-beginning-search-forward
-# Colorscheme
-# sleep 2
-# h=`date +%H`
-# if [ $h -lt 9 ]; then
-# xdotool key Alt+t p Down Right Return
-# eval `dircolors ~/.solarized/dircolors-solarized/dircolors.ansi-dark`
-# elif [ $h -lt 17 ]; then
-# xdotool key Alt+t p Down Down Right Return
-# eval `dircolors ~/.solarized/dircolors-solarized/dircolors.ansi-light`
-# else
-# xdotool key Alt+t p Down Right Return
-# eval `dircolors ~/.solarized/dircolors-solarized/dircolors.ansi-dark`
-# fi
-
# Crontab jobs
crontab ~/.crontab