updates for mu4e and erc.
This commit is contained in:
parent
7080027290
commit
4edd75b6e1
@ -84,11 +84,13 @@
|
||||
"lzip",
|
||||
"make",
|
||||
"mercurial",
|
||||
"mu",
|
||||
"netcat",
|
||||
"nettle",
|
||||
"ngrep",
|
||||
"nmap",
|
||||
"node",
|
||||
"offline-imap",
|
||||
"openssl",
|
||||
"ossp-uuid",
|
||||
"pandoc",
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 82a439cd2f06b4e111dd347d5f6afef023896e07
|
||||
Subproject commit 465abf6de2f36015d8e241ce70cdc1fde294e357
|
@ -70,6 +70,10 @@ function emacs_open {
|
||||
focus_emacs
|
||||
}
|
||||
|
||||
function time_emacs {
|
||||
time \emacs --daemon="timing" && emacsclient -e "(kill-emacs)" --server-file="timing"
|
||||
}
|
||||
|
||||
# Make emacs the default editor.
|
||||
export EDITOR='emacs_open'
|
||||
export VISUAL="$EDITOR"
|
||||
|
@ -270,3 +270,9 @@ function track_modified {
|
||||
function python_module_path {
|
||||
python -c "import os, $1; print(os.path.dirname($1.__file__))"
|
||||
}
|
||||
|
||||
function mu4e_directory {
|
||||
if is_osx; then
|
||||
echo "$(brew --prefix mu)/share/emacs/site-lisp/mu4e"
|
||||
fi
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ for filename in ~/.lib/zsh/*; do
|
||||
done
|
||||
|
||||
alias srczsh="source ~/.zshrc"
|
||||
alias zshenv="source ~/.zshenv"
|
||||
|
||||
# Online help.
|
||||
unalias run-help 2> /dev/null 1>/dev/null
|
||||
|
@ -2,4 +2,4 @@
|
||||
source ~/.lib/shellrc.sh
|
||||
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
|
||||
source ~/.lib/zsh.sh
|
||||
test -r ~/custom.zsh && source ~/custom.zsh
|
||||
test -r ~/.custom.sh && source ~/.custom.sh
|
||||
|
@ -16,3 +16,4 @@ Flask
|
||||
flake8
|
||||
pylint
|
||||
coloredlogs
|
||||
dropbox
|
||||
|
@ -34,6 +34,18 @@ def dotfiles(ctx, flags=''):
|
||||
return ctx.run('dotfiles -s{1} -R {0}'.format(DOTFILES_DIRECTORY, flags))
|
||||
|
||||
|
||||
@ctask
|
||||
def dropbox_dotfiles(ctx, flags='f'):
|
||||
ctx.run('hash dotfiles || sudo pip install dotfiles')
|
||||
link_dropbox_other(ctx)
|
||||
ctx.run('dotfiles -s{1} -R {0}'.format(
|
||||
os.path.join(
|
||||
os.path.expanduser('~'), 'Dropbox', 'configs', 'dotfiles'
|
||||
),
|
||||
flags
|
||||
))
|
||||
|
||||
|
||||
@ctask
|
||||
def powerline(ctx):
|
||||
ctx.run('sudo pip install psutil')
|
||||
@ -66,12 +78,11 @@ def change_shell(ctx):
|
||||
|
||||
|
||||
@ctask
|
||||
def link_dropbox(ctx):
|
||||
def link_dropbox_other(ctx):
|
||||
link_pairs = (
|
||||
('~/Dropbox/configs/custom.el', '~/.emacs.d/custom.el'),
|
||||
('~/Dropbox/configs/custom.zsh', '~/custom.zsh'),
|
||||
('~/Dropbox/Documents', '~/Documents'),
|
||||
('~/Dropbox/Pictures', '~/Pictures'),
|
||||
('~/Dropbox/Pictures', '~/Pictures')
|
||||
)
|
||||
for source, destination in link_pairs:
|
||||
destination = os.path.expanduser(destination)
|
||||
@ -99,7 +110,7 @@ ns.add_task(customize_user_settings)
|
||||
ns.add_task(dotfiles)
|
||||
ns.add_task(install_npm_libraries)
|
||||
ns.add_task(install_python_libraries)
|
||||
ns.add_task(link_dropbox)
|
||||
ns.add_task(dropbox_dotfiles)
|
||||
ns.add_task(powerline)
|
||||
ns.add_task(setup)
|
||||
ns.add_task(vimstall)
|
||||
|
Loading…
Reference in New Issue
Block a user