Emacs: use yasnippet custom bundle to highly improve starting time. [FIX]

Emacs: various tweaks.
Shell: fixed Emacs server issue. [FIX]
Mutt: added color theme. [NEW]
Mutt: use Emacs server.
master
Ambrevar 2012-07-02 18:11:12 +01:00
parent cb66c63b76
commit d523af2f3c
67 changed files with 606 additions and 58 deletions

View File

@ -4,10 +4,10 @@ bustle
dropbox dropbox
dropbox-cli dropbox-cli
emacs-yasnippet emacs-yasnippet
emacs-yasnippet-latex-git
gsharkdown gsharkdown
linux-custom linux-custom
movgrab movgrab
msmtp-pwpatched
otf-texgyre otf-texgyre
package-query package-query
pacman-color pacman-color

View File

@ -34,7 +34,6 @@ e2fsprogs
emacs-lua-mode emacs-lua-mode
emacs-nox emacs-nox
emacs-yasnippet emacs-yasnippet
emacs-yasnippet-latex-git
epdfview epdfview
fakeroot fakeroot
feh feh
@ -91,7 +90,8 @@ mediainfo
mercurial mercurial
movgrab movgrab
mplayer mplayer
msmtp msmtp-mta
msmtp-pwpatched
mutt mutt
nano nano
nasm nasm

View File

@ -11,7 +11,6 @@ atk
atkmm atkmm
atool atool
attr attr
auctex
autoconf autoconf
automake automake
avahi avahi
@ -334,7 +333,7 @@ mozilla-common
mpfr mpfr
mpg123 mpg123
mplayer mplayer
msmtp msmtp-mta
mtdev mtdev
musicbrainz musicbrainz
mutt mutt

67
.emacs
View File

@ -20,7 +20,7 @@
(autoload 'linum-mode "linum" "toggle line numbers on/off" t) (autoload 'linum-mode "linum" "toggle line numbers on/off" t)
(global-set-key (kbd "C-<f5>") 'linum-mode) (global-set-key (kbd "C-<f5>") 'linum-mode)
(setq linum-format "%d ") (setq linum-format "%d ")
(global-linum-mode 1) (global-linum-mode 1) ; This may generate warnings. Bug?
;; Indentation ;; Indentation
;(setq standard-indent 4) ;; Set standard indent to 2 rather that 4 ;(setq standard-indent 4) ;; Set standard indent to 2 rather that 4
@ -66,15 +66,15 @@
(setq-default fill-column 80) (setq-default fill-column 80)
;; (setq auto-fill-mode 1) ;; Does not work ? ;; (setq auto-fill-mode 1) ;; Does not work ?
(add-hook 'text-mode-hook 'turn-on-auto-fill) (add-hook 'text-mode-hook 'turn-on-auto-fill)
(add-hook 'c-mode-common-hook ;; (add-hook 'c-mode-common-hook
(lambda () ;; (lambda ()
(auto-fill-mode 1) ;; (auto-fill-mode 1)
(set (make-local-variable 'fill-nobreak-predicate) ;; (set (make-local-variable 'fill-nobreak-predicate)
(lambda () ;; (lambda ()
(not (eq (get-text-property (point) 'face) ;; (not (eq (get-text-property (point) 'face)
'font-lock-comment-face )) ;; 'font-lock-comment-face ))
)) ;; ))
)) ;; ))
;; Man-mode ;; Man-mode
@ -84,10 +84,12 @@
;; Theme ;; Theme
;;============================================================================== ;;==============================================================================
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(lazy-highlight ((t (:background "blue"))))
'(link ((t (:foreground "cyan" :underline t))))
'(minibuffer-prompt ((t (:foreground "cyan"))))) '(minibuffer-prompt ((t (:foreground "cyan")))))
;;============================================================================== ;;==============================================================================
@ -99,11 +101,21 @@
;;============================================================================== ;;==============================================================================
;; Example of automode default modification ;; Automode default modification
;;============================================================================== ;;==============================================================================
;; Read Matlab files in Octave mode.
(setq auto-mode-alist (setq auto-mode-alist
(append (append
'(("\\.m$" . octave-mode) '(("\\.m\\'" . octave-mode)
)
auto-mode-alist)
)
;; Mutt support
(setq auto-mode-alist
(append
'(("mutt.*" . text-mode)
) )
auto-mode-alist) auto-mode-alist)
) )
@ -324,19 +336,22 @@
;;============================================================================== ;;==============================================================================
;; Yasnippet ;; Yasnippet
;;============================================================================== ;;==============================================================================
;; Yasnippet is slow when loading snipepts from source.
;; Generate a bundle instead: yas/compile-bundle
;; Besides you can convert the generated file to bytecode.
(add-to-list 'load-path "~/.emacs.d/plugins")
(require 'yasnippet-bundle)
;; (add-to-list 'load-path "/usr/share/emacs/site-lisp/yas") ;; (add-to-list 'load-path "/usr/share/emacs/site-lisp/yas")
;; (require 'yasnippet) ;; not yasnippet-bundle ;; (require 'yasnippet) ;; not yasnippet-bundle
;; (yas/initialize) ;; (yas/initialize)
;; ;; Develop and keep personal snippets under ~/emacs.d/mysnippets ;; ;; Personal snippets
;; ;; (setq yas/root-directory "~/emacs.d/mysnippets")
;; (setq yas/root-directory "~/.emacs.d/plugins/yas/snippets" ) ;; (setq yas/root-directory "~/.emacs.d/plugins/yas/snippets" )
;; ;; "/usr/share/emacs/site-lisp/yas/snippets" ;; Load the snippets
;; (yas/load-directory "~/.emacs.d/plugins/yas/snippets") ; Warning: slow!
;; ;; Load the snippets
;; (yas/load-directory "/usr/share/emacs/site-lisp/yas/snippets")
;; (yas/load-directory yas/root-directory) ;; (yas/load-directory yas/root-directory)
;;============================================================================== ;;==============================================================================
@ -417,3 +432,11 @@
;; (setq mediawiki-site-alist ;; (setq mediawiki-site-alist
;; (append '("ArchWiki" "https://wiki.archlinux.org/" "username" "password" "Main Page") ;; (append '("ArchWiki" "https://wiki.archlinux.org/" "username" "password" "Main Page")
;; mediawiki-site-alist)) ;; mediawiki-site-alist))
;; (custom-set-variables
;; ;; custom-set-variables was added by Custom.
;; ;; If you edit it by hand, you could mess it up, so be careful.
;; ;; Your init file should contain only one such instance.
;; ;; If there is more than one, they won't work right.
;; )

View File

@ -103,6 +103,7 @@
("svp" "s'il vous pla<6C>ît" nil 1) ("svp" "s'il vous pla<6C>ît" nil 1)
("teh" "the" nil 1) ("teh" "the" nil 1)
("tex" "TeX" nil 2) ("tex" "TeX" nil 2)
("tps" "temps" nil 4)
("tjrs" "toujours" nil 4) ("tjrs" "toujours" nil 4)
("ts" "tous" nil 1) ("ts" "tous" nil 1)
("tt" "tout" nil 3) ("tt" "tout" nil 3)

View File

@ -0,0 +1,3 @@
#name : FILE *fp = fopen(..., ...);
# --
FILE *${fp} = fopen(${"file"}, "${r}");

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name : printf
# contributor : joaotavora
# --
printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")
}$2${1:$(if (string-match "%" text) "\);" "")}

View File

@ -0,0 +1,6 @@
#name : do { ... } while (...)
# --
do
{
$0
} while (${1:condition});

View File

@ -0,0 +1,6 @@
#name : if (...) { ... }
# --
if (${1:condition})
{
$0
}

View File

@ -0,0 +1,3 @@
#name : #include "..."
# --
#include "$1"

View File

@ -0,0 +1,3 @@
#name : #include <...>
# --
#include <$1>

View File

@ -0,0 +1,8 @@
#name : #ifndef XXX; #define XXX; #endif
# --
#ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H_}
#define $1
$0
#endif /* $1 */

View File

@ -0,0 +1,6 @@
#name : struct ... { ... }
# --
struct ${1:name}
{
$0
};

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : abs
# group: sections
# name : \abstract
# --
\begin{abstract}
$0
\end{abstract}

View File

@ -0,0 +1,7 @@
#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
#name : \begin{environment} ... \end{environment}
# --
\begin{${1:environment}}
$0
\end{$1}

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# contributor : Bjorn Reese <breese@users.sourceforge.net>
# key: begin
# group: environments
# name: \begin{environment} ... \end{environment}
# --
\begin{${1:$$(yas/choose-value (mapcar 'car (LaTeX-environment-list)))}}
$0
\end{$1}

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: bib
# group: misc
# name: \bibliography
# --
\bibliographystyle{plain}
\bibliography{$1}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Song Qiang <tsiangsung@gmail.com>
# key: big
# group: math
# name: \bigl( ... \bigr)
# --
\\${1:$$(yas/choose-value '("big" "Big" "bigg" "Bigg"))}l( $0 \\$1r)

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: François Garillot <francois@garillot.net>
# key: bigop
# group: math
# name: \bigop_{n}^{}
# --
\\big${1:$$(yas/choose-value '("oplus" "otimes" "odot" "cup" "cap" "uplus" "sqcup" "vee" "wedge"))}_{$2}^{$3}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Song Qiang <tsiangsung@gmail.com>
# key: binom
# group: math
# name: \binom{n}{k}
# --
\binom{${1:n}}{${2:k}}

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Claudio Marforio <marforio@gmail.com>
# key: block
# group: environments
# name : \begin{*block} ... \end{*block}
# --
\begin{${1:$$(yas/choose-value '("block" "exampleblock" "alertblock"))}}{${2:Block Title}}
\end{$1}

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
# key: bf
# group: font
# name: {\bf ... }
# --
{\bf $1}$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: case
# group: math
# name: \begin{cases} ... \end{cases}
# --
\begin{cases}
$0 \\\\
\end{cases}

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : cha
# group: sections
# name : \chapter
# --
\chapter{${1:name}}
\label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
$0

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : cha*
# group: sections
# name : \chapter*
# --
\chapter*{${1:name}}
$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor : Marcio M. Ribeiro <marcio.mr@gmail.com>
# key: cite
# group: references
# name : \cite
# --
\cite{${1:label$(unless yas/modified-p (reftex-citation nil 'dont-insert))}}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: François Garillot <francois@garillot.net>
# key: coprod
# group: math
# name: \coprod_{n}^{}
# --
\coprod_{$1}^{$2}$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : desc
# group: environments
# name : \begin{description} ... \end{description}
# --
\begin{description}
\item[$0]
\end{description}

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: doc
# name: \documentclass
# --
\documentclass[$2]{${1:$$(yas/choose-value '("article" "report" "book" "letter"))}}
\begin{document}
$0
\end{document}

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
# key: em
# group: font
# name: {\em ...}
# --
{\em $1}$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: enum
# group: environments
# name : \begin{enumerate} ... \end{enumerate}
# --
\begin{enumerate}
\item $0
\end{enumerate}

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: eq
# group: math
# name: \begin{equation} ... \end{equation}
# --
\begin{equation}
\label{${1:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
$0
\end{equation}

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: eqs
# group: math
# name: \begin{align} ... \end{align}
# --
\begin{${1:$$(yas/choose-value '("align" "align*" "multline" "gather" "subequations"))}}
\label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
$0
\end{$1}

View File

@ -0,0 +1,12 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : fig
# group: environments
# name : \begin{figure} ... \end{figure}
# --
\begin{figure}[htbp]
\centering
$0
\caption{${1:caption}}
\label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
\end{figure}

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Song Qiang <tsiangsung@gmail.com>
# key: frac
# group: math
# name: \frac{numerator}{denominator}
# --
\frac{${1:numerator}}{${2:denominator}}$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Claudio Marforio <marforio@gmail.com>
# key: frame
# group: environments
# name : \begin{frame} ... \end{frame}
# --
\begin{frame}{${1:Frame Title}}
\end{frame}

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : graphics
# name : \includegraphics
# --
\includegraphics[width=${1:\linewidth}]{${2:file}}

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: href
# group: environments
# name: \href{url}{text}
# --
\href{${1:url}}{${2:text}}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Song Qiang <tsiangsung@gmail.com>
# key: int
# group: math
# name: \int_{n}^{}
# --
\\${1:$$(yas/choose-value '("int" "oint" "iint" "iiint" "iiiint" "idotsint"))}{$2}^{$3}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: it
# group: environments
# name: \item
# --
\item $0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : item
# group: environments
# name : \begin{itemize} ... \end{itemize}
# --
\begin{itemize}
\item $0
\end{itemize}

View File

@ -0,0 +1,7 @@
-*- mode: snippet -*-
# contributor : Márcio M. Ribeiro <marcio.mr@gmail.com>
# key: lab
# group: references
# name : \label
# --
\label{${1:label$(unless yas/modified-p (reftex-label nil 'dont-insert))}}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: François Garillot <francois@garillot.net>
# key: lim
# group: math
# name: \lim_{n}
# --
\lim_{$1}$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Song Qiang <tsiangsung@gmail.com>
# key: math
# group: math
# name: displaymath \[ ... \]
# --
\[
$1
\]

View File

@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# contributor: Song Qiang <tsiangsung@gmail.com>
# key: matrix
# group: math
# name: \begin{matrix} ... \end{}
# --
\begin{${1:$$(yas/choose-value '("pmatrix" "bmatrix" "Bmatrix" "vmatrix" "Vmatrix" "smallmatrix"))}}
\label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
$0
\end{$1}

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: minipage
# group: environments
# name: \begin{minipage}[position][width] ... \end{minipage}
# --
\begin{minipage}[${1:htbp}]{${2:1.0}${3:\linewidth}}
$0
\end{minipage}

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: par
# group: sections
# name : \paragraph
# --
\paragraph{${1:name}}
\label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: François Garillot <francois@garillot.net>
# key: prod
# group: math
# name: \prod_{n}^{}
# --
\prod_{$1}^{$2}$0

View File

@ -0,0 +1,7 @@
-*- mode: snippet -*-
# contributor : Márcio M. Ribeiro <marcio.mr@gmail.com>
# key: ref
# group: references
# name : \ref
# --
\ref{${1:label$(unless yas/modified-p (reftex-reference nil 'dont-insert))}}$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : sec
# group: sections
# name : \section
# --
\section{${1:name}}
\label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
$0

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : sec*
# group: sections
# name : \section*
# --
\section*{${1:name}}
$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: ssub
# group: sections
# name : \subsubsection
# --
\subsubsection{${1:name}}
\label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
$0

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: ssub*
# group: sections
# name : \subsubsection*
# --
\subsubsection*{${1:name}}
$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: sub
# group: sections
# name : \subsection
# --
\subsection{${1:name}}
\label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
$0

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: subfig
# group: environments
# name : \subfigure
# --
\subfigure[${1:caption}]{
\label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
$0
}

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: sub*
# group: sections
# name : \subsection*
# --
\subsection*{${1:name}}
$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Song Qiang <tsiangsung@gmail.com>
# key: sum
# group: math
# name: \sum_{n}^{}
# --
\sum_{$1}^{$2}$0

View File

@ -0,0 +1,14 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: table
# group: environments
# name : \begin{table} ... \end{table}
# --
\begin{table}[htbp]
\centering
\begin{tabular}{${3:format}}
$0
\end{tabular}
\caption{${1:caption}}
\label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
\end{table}

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: url
# group: environments
# name: \url
# --
\url{${1:$$(yas/choose-value '("http" "ftp"))}://${2:address}}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: use
# group: misc
# name: \usepackage
# --
\usepackage[$2]{$1}$0

View File

@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# contributor : Bjorn Reese <breese@users.sourceforge.net>
# contributor : Song Qiang <tsiangsung@gmail.com>
# key: verb
# group: environments
# name: \begin{verbatim} ... \end{verbatim}
# --
\begin{verbatim}
$0
\end{verbatim}

Binary file not shown.

95
.muttrc
View File

@ -18,6 +18,12 @@ macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/$my_ac_personal<en
macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/$my_ac_work<enter><change-folder>!<enter>' macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/$my_ac_work<enter><change-folder>!<enter>'
macro index <f4> '<sync-mailbox><enter-command>source ~/.mutt/$my_ac_university<enter><change-folder>!<enter>' macro index <f4> '<sync-mailbox><enter-command>source ~/.mutt/$my_ac_university<enter><change-folder>!<enter>'
#-------------------------------------------------------------------------------
# General options
#-------------------------------------------------------------------------------
# TODO: why doesn't the $EDITOR variable work for connecting to emacs daemon?
set editor="emacsclient -a \"\" -t"
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Receiving options # Receiving options
@ -48,7 +54,88 @@ set beep_new = "yes"
set mbox_type=Maildir set mbox_type=Maildir
set edit_headers=yes set edit_headers=yes
#set record=~/sent
#set folder=~/mail
#set mbox=+mbox
#set postponed=+drafts #-------------------------------------------------------------------------------
# Theme
#-------------------------------------------------------------------------------
# Colours for items in the index
color index brightcyan black ~N
# Hmm, don't like this.
#color index brightgreen black "~N (~x byers.world)|(~x byers.x)|(~x langly.levallois123.axialys.net)|(~x the.earth.li)"
color index brightyellow black ~F
color index black green ~T
color index brightred black ~D
mono index bold ~N
mono index bold ~F
mono index bold ~T
mono index bold ~D
# Highlights inside the body of a message.
# URLs
color body brightgreen black "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
mono body bold "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
# email addresses
color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
#mono body bold "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
# header
color header green black "^from:"
color header green black "^to:"
color header green black "^cc:"
color header green black "^date:"
color header yellow black "^newsgroups:"
color header yellow black "^reply-to:"
color header brightcyan black "^subject:"
color header red black "^x-spam-rule:"
color header green black "^x-mailer:"
color header yellow black "^message-id:"
color header yellow black "^Organization:"
color header yellow black "^Organisation:"
color header yellow black "^User-Agent:"
color header yellow black "^message-id: .*pine"
color header yellow black "^X-Fnord:"
color header yellow black "^X-WebTV-Stationery:"
color header yellow black "^X-Message-Flag:"
color header yellow black "^X-Spam-Status:"
color header yellow black "^X-SpamProbe:"
color header red black "^X-SpamProbe: SPAM"
# Coloring quoted text - coloring the first 7 levels:
color quoted cyan black
color quoted1 yellow black
color quoted2 red black
color quoted3 green black
color quoted4 cyan black
color quoted5 yellow black
color quoted6 red black
color quoted7 green black
# Default color definitions
#color hdrdefault white green
color signature brightmagenta black
color indicator black cyan
color attachment black green
color error red black
color message white black
color search brightwhite magenta
color status brightyellow blue
color tree brightblue black
color normal white black
color tilde green black
color bold brightyellow black
#color underline magenta black
color markers brightcyan black
# Colour definitions when on a mono screen
mono bold bold
mono underline underline
mono indicator reverse

View File

@ -1,6 +1,6 @@
################################################################################ ################################################################################
## Shell Config -- Alias Definitions. ## Shell Config -- Alias Definitions.
## Date 2012-06-21 ## Date 2012-07-02
################################################################################ ################################################################################
##============================================================================== ##==============================================================================
@ -20,17 +20,34 @@ if isShell "zsh"; then
alias ssrc='source ~/.zshrc' alias ssrc='source ~/.zshrc'
fi fi
## Enable color support of ls and also add handy aliases.
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
fi
##============================================================================== ##==============================================================================
##============================================================================== ##==============================================================================
## 'ls' redefinition
alias ls='ls --color=auto -F -v'
## Listing aliases
alias l='ls -1'
alias la='ls -lAh --group-directories-first' # Hidden files
alias lc='ls -ltcrh --group-directories-first' # by change time
alias lk='ls -lSrh --group-directories-first' # by size
alias ll='ls -lh --group-directories-first' # Detailed view with human readable values.
alias lx='ls -lXh --group-directories-first' # sort by extension
# Misc
alias cp="cp -i" # confirm before overwriting something alias cp="cp -i" # confirm before overwriting something
alias xmx='xrdb -merge ~/.Xresources' alias xmx='xrdb -merge ~/.Xresources'
alias grep='grep --color=auto' alias grep='grep --color=auto'
## Emacs ## Emacs
if [ -e "/usr/bin/emacs" ]; then if [ -e "/usr/bin/emacs" ]; then
alias emacs='emacsclient -t -a "" -c' alias em='emacsclient -a "" -t'
alias emacs-reload="emacsclient -e '(kill-emacs)' >/dev/null 2>&1; /usr/bin/emacs --daemon" alias emacs-reload="emacsclient -e '(kill-emacs)' >/dev/null 2>&1; /usr/bin/emacs --daemon"
fi fi
## Check colors supported by the current terminal. ## Check colors supported by the current terminal.
@ -87,26 +104,6 @@ fi
# fi # fi
##==============================================================================
## Listing aliases
##==============================================================================
## Enable color support of ls and also add handy aliases.
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
fi
## 'ls' redefinition
alias ls='ls --color=auto -F -v'
## Shortcuts
alias l='ls -1'
alias la='ls -lAh --group-directories-first' # Hidden files
alias lc='ls -ltcrh --group-directories-first' # by change time
alias lk='ls -lSrh --group-directories-first' # by size
alias ll='ls -lh --group-directories-first' # Detailed view with human readable values.
alias lx='ls -lXh --group-directories-first' # sort by extension
##============================================================================== ##==============================================================================
## Pacman aliases ## Pacman aliases
##============================================================================== ##==============================================================================

View File

@ -53,10 +53,8 @@ if [ "" != "$(command -v vim)" ]; then
EDITOR=vim EDITOR=vim
fi fi
if [ "" != "$(command -v emacs)" ]; then if [ "" != "$(command -v emacs)" ]; then
alias emacs='emacsclient -t' #EDITOR=emacs
EDITOR=emacs EDITOR='emacsclient -a "" -t'
# EDITOR="emacsclient --alternate-editor emacs +%d %s"
fi fi
export EDITOR export EDITOR