配置.Xresources
$ cat ~/.Xresources然后
Xft.antialias:1
Xft.hinting:1
Xft.hintstyle:hintfull
Emacs.FontBackend:xft
$ xrdb ~/.Xresources
$ cat ~/.Xresources然后
Xft.antialias:1
Xft.hinting:1
Xft.hintstyle:hintfull
Emacs.FontBackend:xft
$ xrdb ~/.Xresources
$ cat ~/.indent.pro
-bl // Put braces on line after if, etc.
-bli0 // Indent braces n spacs.
-bls // Put braces on the line after struct declaration lines.
-c32 // Put comments to the right of code in column n.
-cd32 // Put comments to the right of declarations in column n.
-cp32 // Put comments to the right of #else and #endif statements in column n.
-i4 // Set indentation level to n spaces.
-kr // Use Kernighan & Ritchie coding style.
-nce // Do not cuddle } and else.
$ cat ~/.emacs
;; template
(require 'template)
(template-initialize)
;; auto-header.el
(require 'auto-header)
(setq header-full-name "Dreamseeker"
header-email-address "gaochangjian<at>gmail<dot>com"
header-copyright-notice "Copyleft (c) INF, Dreamseeker"
header-update-on-save '(filename modified counter copyright)
header-field-list '(filename
blank
description
blank
author
created
blank
modified_by
modified
blank
status
update
blank
copyright))
;; auto update the number of count
(global-set-key (kbd "s-h") (lambda ()
(interactive)
(if (header-exists-p)
(header-update-count)
(header-make t))))
$ cat ~/.mplayer/config
zoom=yes
;; EMMS参考了这篇文章.
(add-to-list 'load-path "/usr/share/emacs/site-lisp/emms/")
(require 'emms-setup)
(emms-standard)
(emms-default-players)
(setq emms-repeat-playlist t
emms-source-file-default-directory "/home/xiaolan/music/"
emms-lyrics-coding-system nil ;; let emacs to identify the encode of lyrics
emms-lyrics-dir "/home/xiaolan/music/lyrics")
;; show info at mode-line
(require 'emms-mode-line)
(emms-mode-line 1)
;; show time of music
(require 'emms-playing-time)
(emms-playing-time 1)
;; show lyrics
(require 'emms-lyrics)
(emms-lyrics 1)
;; auto identify encode
(require 'emms-i18n)
;; auto save and import playlist
(require 'emms-history)
(emms-history-load)
(global-set-key (kbd "<f6>") 'emms-play-directory)
(global-set-key (kbd "<f5>") 'emms-playlist-mode-go)
$ xetex --version感觉就是一个字: 爽! 哈哈~
XeTeX 3.1415926-2.2-0.999.6 (Web2C 7.5.7)
kpathsea version 3.5.7
Copyright 2008 SIL International.
Kpathsea is copyright 2008 Karl Berry and Olaf Weber.
There is NO warranty. Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Kpathsea written by Karl Berry, Olaf Weber, and others.
Compiled with ICU version 3.8.1 [with modifications for XeTeX]
Compiled with zlib version 1.2.3; using 1.2.3.3
Compiled with FreeType2 version 2.3.7; using 2.3.7
Compiled with fontconfig version 2.6.0; using 2.6.0
Compiled with libpng version 1.2.29; using 1.2.32
Compiled with xpdf version 3.02pl2
$ sudo pacman -S texlive-core texlive-latexextra
$ sudo mktexlsr
\usepackage{xeCJK}
\setmainfont[BoldFont=Adobe Heiti Std]{Adobe Song Std} % 设置默认的英文字体
\setCJKmainfont[BoldFont=Adobe Heiti Std]{Adobe Song Std} % 设置默认的中文字体