Merge branch 'master' of bitbucket.org:ambrevar/home-config

master
Pierre Neidhardt 2013-05-28 10:19:46 +02:00
commit 2148e6178b
9 changed files with 55 additions and 45 deletions

View File

@ -185,3 +185,6 @@
(lambda () (interactive) )
(setq org-agenda-files '("~/todo.org"))
(setq org-enforce-todo-dependencies t))
;; Ediff in one frame.
(setq ediff-window-setup-function 'ediff-setup-windows-plain)

View File

@ -6,8 +6,9 @@
## Note on folders:
## These folders are assumed to exist:
## ~/.mutt: personal stuff (contacts, account information)
## ~/.mutt.d: public stuff (theme, mailcap)
## ~/.mutt.d: personal stuff (contacts, account information).
## ~/.mutt: public stuff (theme, mailcap).
## ~/.cache/mutt: header cache.
##------------------------------------------------------------------------------
## General options
@ -20,7 +21,7 @@ set beep_new = "yes"
set edit_headers=yes
## Set EDITOR dynamically.
source "~/.mutt.d/maileditor.sh|"
source "~/.mutt/maileditor.sh|"
## Store message headers locally to speed things up. Gentoo wiki says that if a
## folder is specified, it is even faster. If no folder exists, the cache will
@ -40,7 +41,7 @@ set imap_keepalive = 300
unset imap_passive
## Mailcap
set mailcap_path = ~/.mutt.d/mailcap
set mailcap_path = ~/.mutt/mailcap
auto_view text/html
alternative_order text/plain text/html
@ -60,39 +61,39 @@ set sleep_time = 0
## Multiple accounts
##------------------------------------------------------------------------------
set my_ac_dev=dev
set my_ac_personal=personal
set my_ac_university=university
set my_ac_work=work
## accountrc should contain the following config:
## Set account names (arbitrary).
# set my_ac_personal=personal
# set my_ac_work=work
#
## Fetch passwords
# source "ccat ~/.mutt-pwds.cpt |"
## Or
# source "gpg2 -dq ~/.mutt-pwds.gpg |"
##
## Folder hooks, one per account.
# source "~/.mutt.d/$my_ac_personal"
# folder-hook $folder 'source ~/.mutt.d/$my_ac_personal'
# source "~/.mutt.d/$my_ac_work"
# folder-hook $folder 'source ~/.mutt.d/$my_ac_work'
##
## Optionnaly you can add shortcuts to switch mailboxes:
# macro index,pager <f2> '<enter-command>source ~/.mutt.d/$my_ac_personal<enter><change-folder>!<enter>'
# macro index,pager <f3> '<enter-command>source ~/.mutt.d/$my_ac_work<enter><change-folder>!<enter>'
## Login
## Store passwords as follows in .mutt-pwds:
## set my_pw_account = foo
# set my_pw_account = foo
##
## CCRYPT:
## ccencrypt .mutt-pwds
## $ ccencrypt .mutt-pwds
##
## GNUPG: Generate a key pair with:
## gpg2 --gen-key
## $ gpg2 --gen-key
## Encrypt them with:
## gpg2 -e -r <user> ".mutt-pwds"
source "ccat ~/.mutt-pwds.cpt |"
# source "gpg2 -dq ~/.mutt-pwds.gpg |"
## $ gpg2 -e -r <user> ".mutt-pwds"
## Last account is default.
source "~/.mutt/$my_ac_dev"
folder-hook $folder 'source ~/.mutt/$my_ac_dev'
source "~/.mutt/$my_ac_personal"
folder-hook $folder 'source ~/.mutt/$my_ac_personal'
source "~/.mutt/$my_ac_university"
folder-hook $folder 'source ~/.mutt/$my_ac_university'
source "~/.mutt/$my_ac_work"
folder-hook $folder 'source ~/.mutt/$my_ac_work'
macro index,pager <f2> '<enter-command>source ~/.mutt/$my_ac_dev<enter><change-folder>!<enter>'
macro index,pager <f3> '<enter-command>source ~/.mutt/$my_ac_personal<enter><change-folder>!<enter>'
macro index,pager <f4> '<enter-command>source ~/.mutt/$my_ac_university<enter><change-folder>!<enter>'
macro index,pager <f5> '<enter-command>source ~/.mutt/$my_ac_work<enter><change-folder>!<enter>'
source "~/.mutt.d/accountrc"
##------------------------------------------------------------------------------
## Sidebar
@ -127,7 +128,7 @@ macro pager b '<enter-command>toggle sidebar_visible<enter><redraw-screen>'
##------------------------------------------------------------------------------
## Mutt native support
# set alias_file = "~/.mutt/aliases"
# set alias_file = "~/.mutt.d/aliases"
# set sort_alias = alias
# set reverse_alias = yes
# source $alias_file
@ -210,8 +211,8 @@ folder-hook .*[sS]ent.* 'set index_format="%2C | %Z [%d] %-30.30t (%-4.4c) %s"'
folder-hook ! .*[sS]ent.* 'set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %s"'
## Colors
source "~/.mutt.d/colorset.sh|"
source "~/.mutt.d/colors.ambrevar"
source "~/.mutt/colorset.sh|"
source "~/.mutt/colors.ambrevar"
# source "/usr/share/doc/mutt/samples/colors.default"
# source "/usr/share/doc/mutt/samples/colors.linux"

View File

@ -54,8 +54,7 @@ fi
if [ -n "$(command -v mutt)" ]; then
echo "==> Mutt"
# [ -d "$SOURCEDIR" ] && ln -snf "$(realpath ${SOURCEDIR}/mails)" "${HOME}/.mutt"
[ -d "$SOURCEDIR" ] && ln -snf "${SOURCEDIR}/mails" "${HOME}/.mutt"
[ -d "$SOURCEDIR" ] && ln -snf "${SOURCEDIR}/mails" "${HOME}/.mutt.d"
mkdir -p "${HOME}/.cache/mutt/hcache"
echo
fi

29
README
View File

@ -81,7 +81,7 @@ all files directly. To fetch source from Git repo:
Some applications will need extra dependencies other than the default ones. You
might have a look at the .pkg-* files to see what software I've been using.
Final word: do not forget to read the manpages!
Final word: do not forget to read the man pages!
################################################################################
@ -99,11 +99,21 @@ Some custom options, download location, search engines, etc.
Emacs
*****
Extra deps: emacs-bison-mode emacs-flex-mode emacs-glsl-mode emacs-lua-mode
emacs-make-regexp emacs-mediawiki-bzr emacs-multiple-cursors emacs-nox
emacs-xclip emacs-yasnippet
Extra deps
- recommended: emacs-multiple-cursors emacs-xclip emacs-yasnippet
- optional: emacs-bison-mode emacs-flex-mode emacs-glsl-mode emacs-lua-mode
emacs-make-regexp emacs-mediawiki-bzr
Build options:
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
--localstatedir=/var --with-x-toolkit=lucid --with-xft \
--without-gconf --without-sound
Emacs daemon is integrated flawlessly thanks to a small script. See homeinit.
Because terminal and graphical clients do not behave the same way, it is
sometimes useful to specify which version should be used. For mutt, ranger
bulkrename, git commit message and dwb, it is required to wait for the client to
return.
Configuration for C programming. Bindings to compile either from makefile or
from a custom command if no makefile is found.
@ -179,17 +189,14 @@ pkggen: generates lists of installed with pacman, FreeBSD's pkg and tlmgr (TeX
Shell
*****
Target: zsh, bash
Target: POSIX shell, dash, zsh
Probably the most interesting part here. A lot of stuff: aliases, functions,
shell options, etc.
Please note that this config is mainly intended -- and tested -- for zsh. It
should be mostly compatible with Bourne shell though. When incompabilities have
been encountered, it has been reported into the configuration files. Hence the
shared folder .shell.d/, whose files get sourced by both bash and zsh.
Bash-specific and zsh-specific options are in dedicated files ending with the
appropriate shell name.
Please note that this config is mainly intended -- and tested -- for zsh. I
removed bash support since bash is really a scourge to shell scripting. However
most of the script and the shell configuration are POSIX shell compatible.
TeX
***