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
parent
cb66c63b76
commit
d523af2f3c
|
@ -4,10 +4,10 @@ bustle
|
|||
dropbox
|
||||
dropbox-cli
|
||||
emacs-yasnippet
|
||||
emacs-yasnippet-latex-git
|
||||
gsharkdown
|
||||
linux-custom
|
||||
movgrab
|
||||
msmtp-pwpatched
|
||||
otf-texgyre
|
||||
package-query
|
||||
pacman-color
|
||||
|
|
|
@ -34,7 +34,6 @@ e2fsprogs
|
|||
emacs-lua-mode
|
||||
emacs-nox
|
||||
emacs-yasnippet
|
||||
emacs-yasnippet-latex-git
|
||||
epdfview
|
||||
fakeroot
|
||||
feh
|
||||
|
@ -91,7 +90,8 @@ mediainfo
|
|||
mercurial
|
||||
movgrab
|
||||
mplayer
|
||||
msmtp
|
||||
msmtp-mta
|
||||
msmtp-pwpatched
|
||||
mutt
|
||||
nano
|
||||
nasm
|
||||
|
|
|
@ -11,7 +11,6 @@ atk
|
|||
atkmm
|
||||
atool
|
||||
attr
|
||||
auctex
|
||||
autoconf
|
||||
automake
|
||||
avahi
|
||||
|
@ -334,7 +333,7 @@ mozilla-common
|
|||
mpfr
|
||||
mpg123
|
||||
mplayer
|
||||
msmtp
|
||||
msmtp-mta
|
||||
mtdev
|
||||
musicbrainz
|
||||
mutt
|
||||
|
|
67
.emacs
67
.emacs
|
@ -20,7 +20,7 @@
|
|||
(autoload 'linum-mode "linum" "toggle line numbers on/off" t)
|
||||
(global-set-key (kbd "C-<f5>") 'linum-mode)
|
||||
(setq linum-format "%d ")
|
||||
(global-linum-mode 1)
|
||||
(global-linum-mode 1) ; This may generate warnings. Bug?
|
||||
|
||||
;; Indentation
|
||||
;(setq standard-indent 4) ;; Set standard indent to 2 rather that 4
|
||||
|
@ -66,15 +66,15 @@
|
|||
(setq-default fill-column 80)
|
||||
;; (setq auto-fill-mode 1) ;; Does not work ?
|
||||
(add-hook 'text-mode-hook 'turn-on-auto-fill)
|
||||
(add-hook 'c-mode-common-hook
|
||||
(lambda ()
|
||||
(auto-fill-mode 1)
|
||||
(set (make-local-variable 'fill-nobreak-predicate)
|
||||
(lambda ()
|
||||
(not (eq (get-text-property (point) 'face)
|
||||
'font-lock-comment-face ))
|
||||
))
|
||||
))
|
||||
;; (add-hook 'c-mode-common-hook
|
||||
;; (lambda ()
|
||||
;; (auto-fill-mode 1)
|
||||
;; (set (make-local-variable 'fill-nobreak-predicate)
|
||||
;; (lambda ()
|
||||
;; (not (eq (get-text-property (point) 'face)
|
||||
;; 'font-lock-comment-face ))
|
||||
;; ))
|
||||
;; ))
|
||||
|
||||
|
||||
;; Man-mode
|
||||
|
@ -84,10 +84,12 @@
|
|||
;; Theme
|
||||
;;==============================================================================
|
||||
(custom-set-faces
|
||||
;; custom-set-faces 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.
|
||||
;; custom-set-faces 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.
|
||||
'(lazy-highlight ((t (:background "blue"))))
|
||||
'(link ((t (:foreground "cyan" :underline t))))
|
||||
'(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
|
||||
(append
|
||||
'(("\\.m$" . octave-mode)
|
||||
'(("\\.m\\'" . octave-mode)
|
||||
)
|
||||
auto-mode-alist)
|
||||
)
|
||||
|
||||
;; Mutt support
|
||||
(setq auto-mode-alist
|
||||
(append
|
||||
'(("mutt.*" . text-mode)
|
||||
)
|
||||
auto-mode-alist)
|
||||
)
|
||||
|
@ -324,19 +336,22 @@
|
|||
;;==============================================================================
|
||||
;; 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")
|
||||
;; (require 'yasnippet) ;; not yasnippet-bundle
|
||||
;; (yas/initialize)
|
||||
|
||||
;; ;; Develop and keep personal snippets under ~/emacs.d/mysnippets
|
||||
;; ;; (setq yas/root-directory "~/emacs.d/mysnippets")
|
||||
;; ;; Personal snippets
|
||||
;; (setq yas/root-directory "~/.emacs.d/plugins/yas/snippets" )
|
||||
|
||||
;; ;; "/usr/share/emacs/site-lisp/yas/snippets"
|
||||
|
||||
;; ;; Load the snippets
|
||||
;; (yas/load-directory "/usr/share/emacs/site-lisp/yas/snippets")
|
||||
;; Load the snippets
|
||||
;; (yas/load-directory "~/.emacs.d/plugins/yas/snippets") ; Warning: slow!
|
||||
;; (yas/load-directory yas/root-directory)
|
||||
|
||||
;;==============================================================================
|
||||
|
@ -417,3 +432,11 @@
|
|||
;; (setq mediawiki-site-alist
|
||||
;; (append '("ArchWiki" "https://wiki.archlinux.org/" "username" "password" "Main Page")
|
||||
;; 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.
|
||||
;; )
|
||||
|
|
|
@ -103,6 +103,7 @@
|
|||
("svp" "s'il vous pla<6C>ît" nil 1)
|
||||
("teh" "the" nil 1)
|
||||
("tex" "TeX" nil 2)
|
||||
("tps" "temps" nil 4)
|
||||
("tjrs" "toujours" nil 4)
|
||||
("ts" "tous" nil 1)
|
||||
("tt" "tout" nil 3)
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#name : FILE *fp = fopen(..., ...);
|
||||
# --
|
||||
FILE *${fp} = fopen(${"file"}, "${r}");
|
|
@ -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) "\);" "")}
|
|
@ -0,0 +1,6 @@
|
|||
#name : do { ... } while (...)
|
||||
# --
|
||||
do
|
||||
{
|
||||
$0
|
||||
} while (${1:condition});
|
|
@ -0,0 +1,6 @@
|
|||
#name : if (...) { ... }
|
||||
# --
|
||||
if (${1:condition})
|
||||
{
|
||||
$0
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
#name : #include "..."
|
||||
# --
|
||||
#include "$1"
|
|
@ -0,0 +1,3 @@
|
|||
#name : #include <...>
|
||||
# --
|
||||
#include <$1>
|
|
@ -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 */
|
|
@ -0,0 +1,6 @@
|
|||
#name : struct ... { ... }
|
||||
# --
|
||||
struct ${1:name}
|
||||
{
|
||||
$0
|
||||
};
|
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key : abs
|
||||
# group: sections
|
||||
# name : \abstract
|
||||
# --
|
||||
\begin{abstract}
|
||||
$0
|
||||
\end{abstract}
|
|
@ -0,0 +1,7 @@
|
|||
#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
|
||||
#name : \begin{environment} ... \end{environment}
|
||||
# --
|
||||
|
||||
\begin{${1:environment}}
|
||||
$0
|
||||
\end{$1}
|
|
@ -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}
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: bib
|
||||
# group: misc
|
||||
# name: \bibliography
|
||||
# --
|
||||
\bibliographystyle{plain}
|
||||
\bibliography{$1}$0
|
|
@ -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)
|
|
@ -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
|
|
@ -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}}
|
|
@ -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}
|
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
|
||||
# key: bf
|
||||
# group: font
|
||||
# name: {\bf ... }
|
||||
# --
|
||||
{\bf $1}$0
|
|
@ -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}
|
|
@ -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
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key : cha*
|
||||
# group: sections
|
||||
# name : \chapter*
|
||||
# --
|
||||
\chapter*{${1:name}}
|
||||
$0
|
|
@ -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
|
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: François Garillot <francois@garillot.net>
|
||||
# key: coprod
|
||||
# group: math
|
||||
# name: \coprod_{n}^{}
|
||||
# --
|
||||
\coprod_{$1}^{$2}$0
|
|
@ -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}
|
|
@ -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}
|
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
|
||||
# key: em
|
||||
# group: font
|
||||
# name: {\em ...}
|
||||
# --
|
||||
{\em $1}$0
|
|
@ -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}
|
|
@ -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}
|
|
@ -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}
|
|
@ -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}
|
|
@ -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
|
|
@ -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}
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key : graphics
|
||||
# name : \includegraphics
|
||||
# --
|
||||
\includegraphics[width=${1:\linewidth}]{${2:file}}
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# key: href
|
||||
# group: environments
|
||||
# name: \href{url}{text}
|
||||
# --
|
||||
\href{${1:url}}{${2:text}}$0
|
|
@ -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
|
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: it
|
||||
# group: environments
|
||||
# name: \item
|
||||
# --
|
||||
\item $0
|
|
@ -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}
|
|
@ -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
|
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: François Garillot <francois@garillot.net>
|
||||
# key: lim
|
||||
# group: math
|
||||
# name: \lim_{n}
|
||||
# --
|
||||
\lim_{$1}$0
|
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Song Qiang <tsiangsung@gmail.com>
|
||||
# key: math
|
||||
# group: math
|
||||
# name: displaymath \[ ... \]
|
||||
# --
|
||||
\[
|
||||
$1
|
||||
\]
|
|
@ -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}
|
||||
|
|
@ -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}
|
|
@ -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
|
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: François Garillot <francois@garillot.net>
|
||||
# key: prod
|
||||
# group: math
|
||||
# name: \prod_{n}^{}
|
||||
# --
|
||||
\prod_{$1}^{$2}$0
|
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key : sec*
|
||||
# group: sections
|
||||
# name : \section*
|
||||
# --
|
||||
\section*{${1:name}}
|
||||
$0
|
|
@ -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
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: ssub*
|
||||
# group: sections
|
||||
# name : \subsubsection*
|
||||
# --
|
||||
\subsubsection*{${1:name}}
|
||||
$0
|
|
@ -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
|
|
@ -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
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: sub*
|
||||
# group: sections
|
||||
# name : \subsection*
|
||||
# --
|
||||
\subsection*{${1:name}}
|
||||
$0
|
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Song Qiang <tsiangsung@gmail.com>
|
||||
# key: sum
|
||||
# group: math
|
||||
# name: \sum_{n}^{}
|
||||
# --
|
||||
\sum_{$1}^{$2}$0
|
|
@ -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}
|
|
@ -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
|
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: use
|
||||
# group: misc
|
||||
# name: \usepackage
|
||||
# --
|
||||
\usepackage[$2]{$1}$0
|
|
@ -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
95
.muttrc
|
@ -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 <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
|
||||
|
@ -48,7 +54,88 @@ set beep_new = "yes"
|
|||
set mbox_type=Maildir
|
||||
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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
################################################################################
|
||||
## Shell Config -- Alias Definitions.
|
||||
## Date 2012-06-21
|
||||
## Date 2012-07-02
|
||||
################################################################################
|
||||
|
||||
##==============================================================================
|
||||
|
@ -20,17 +20,34 @@ if isShell "zsh"; then
|
|||
alias ssrc='source ~/.zshrc'
|
||||
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 xmx='xrdb -merge ~/.Xresources'
|
||||
alias grep='grep --color=auto'
|
||||
|
||||
## Emacs
|
||||
if [ -e "/usr/bin/emacs" ]; then
|
||||
alias emacs='emacsclient -t -a "" -c'
|
||||
alias emacs-reload="emacsclient -e '(kill-emacs)' >/dev/null 2>&1; /usr/bin/emacs --daemon"
|
||||
alias em='emacsclient -a "" -t'
|
||||
alias emacs-reload="emacsclient -e '(kill-emacs)' >/dev/null 2>&1; /usr/bin/emacs --daemon"
|
||||
fi
|
||||
|
||||
## Check colors supported by the current terminal.
|
||||
|
@ -87,26 +104,6 @@ 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
|
||||
##==============================================================================
|
||||
|
|
|
@ -53,10 +53,8 @@ if [ "" != "$(command -v vim)" ]; then
|
|||
EDITOR=vim
|
||||
fi
|
||||
if [ "" != "$(command -v emacs)" ]; then
|
||||
alias emacs='emacsclient -t'
|
||||
EDITOR=emacs
|
||||
# EDITOR="emacsclient --alternate-editor emacs +%d %s"
|
||||
|
||||
#EDITOR=emacs
|
||||
EDITOR='emacsclient -a "" -t'
|
||||
fi
|
||||
export EDITOR
|
||||
|
||||
|
|
Loading…
Reference in New Issue