mirror of
https://github.com/beyondx/Notes.git
synced 2026-11-05 23:07:23 +08:00
Add New Notes
This commit is contained in:
84
Zim/Linux/dot_files/Xdefaults.txt
Normal file
84
Zim/Linux/dot_files/Xdefaults.txt
Normal file
@@ -0,0 +1,84 @@
|
||||
Content-Type: text/x-zim-wiki
|
||||
Wiki-Format: zim 0.4
|
||||
Creation-Date: 2011-03-30T18:55:01+08:00
|
||||
|
||||
====== Xdefaults ======
|
||||
Created Wednesday 30 March 2011
|
||||
|
||||
如何在Debian Lenny中美化urxvt的字体?
|
||||
2009-05-16
|
||||
|
||||
版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明http://626c6f67.blogbus.com/logs/39457463.html
|
||||
|
||||
首先已经假设你安装好了xfonts-wqy和rxvt-unicode了。
|
||||
|
||||
然后在$HOME下找到或新建.Xresources文件
|
||||
|
||||
写入下面的代码:
|
||||
|
||||
URxvt.font:9x15,xft:WenQuanYi Bitmap Song-12
|
||||
URxvt.boldFont:9x15,xft:WenQuanYi Bitmap Song-12
|
||||
|
||||
其中:
|
||||
URxvt表示rxvt-unicode
|
||||
font和boldFont表示要显示字体所给予屏幕上的空间大小
|
||||
xft:之后是“用xlsfonts显示出来的已安装的字体”
|
||||
最后那个数字是所呈现字体的大小(即字号)
|
||||
|
||||
PS: 搞了半天才明白……而且网上有90%的关于这样的资料都是抄的,实在对于那些抄袭的人深恶痛绝!
|
||||
Wednesday 30/03/2011
|
||||
|
||||
以下为配置文件:
|
||||
|
||||
!!$HOME/.Xdefaults
|
||||
URxvt.preeditType:Root
|
||||
!!调整此处设置输入法
|
||||
URxvt.inputMethod:ibus
|
||||
!!颜色设置
|
||||
URxvt.depth:32
|
||||
!!中括号内数表示透明度
|
||||
URxvt.background: [90]#000000
|
||||
URxvt.foreground: #ffffff
|
||||
URxvt.colorBD:Gray95
|
||||
URxvt.colorUL:Green
|
||||
URxvt.color1:Red2
|
||||
URxvt.color4:RoyalBlue
|
||||
URxvt.color5:Magenta2
|
||||
URxvt.color8:Gray50
|
||||
URxvt.color10:Green2
|
||||
URxvt.color12:DodgerBlue
|
||||
URxvt.color14:Cyan2
|
||||
URxvt.color15:Gray95
|
||||
!!URL操作
|
||||
URxvt.urlLauncher:chromium
|
||||
URxvt.matcher.button:1
|
||||
Urxvt.perl-ext-common:matcher
|
||||
!!滚动条设置
|
||||
URxvt.scrollBar:True
|
||||
URxvt.scrollBar_right:True
|
||||
URxvt.scrollBar_floating:False
|
||||
URxvt.scrollstyle:plain
|
||||
!!滚屏设置
|
||||
URxvt.mouseWheelScrollPage:True
|
||||
URxvt.scrollTtyOutput: False
|
||||
URxvt.scrollWithBuffer: True
|
||||
URxvt.scrollTtyKeypress: True
|
||||
!!光标闪烁
|
||||
URxvt.cursorBlink:True
|
||||
URxvt.saveLines:3000
|
||||
!!边框
|
||||
URxvt.borderLess: False
|
||||
!!字体设置(四种字体方案)
|
||||
Xft.dpi:96
|
||||
|
||||
URxvt.font:xft:**Monaco**:size=12:antialias=true,xft:WenQuanYi Zen Hei:size=10:antialias=true:charwidth=13
|
||||
|
||||
URxvt.font:xft:Liberation Mono:pixelsize=16:antialias=false,xft:WenQuanYi Zen Hei:pixelsize=14
|
||||
URxvt.boldFont:xft:Liberation Mono:pixelsize=16:antialias=false:Bold,xft:WenQuanYi Zen Hei:pixelsize=14:Bold
|
||||
|
||||
!!Rxvt.font:9*15,xft:DejaVu Sans Mono-11,xft:WenQuanYi Zen Hei-10
|
||||
!!Rxvt.boldFont:9*15,xft:DejaVu Sans Mono-11:Bold,xft:WenQuanYi Zen Hei-10:Bold
|
||||
|
||||
!!URxvt.font:9x15,xft:WenQuanYi Bitmap Song-12
|
||||
!!URxvt.boldFont:9x15,xft:WenQuanYi Bitmap Song-12
|
||||
urxvt.imLocale:zh_CN.utf8
|
||||
89
Zim/Linux/dot_files/Xdefaults/2.txt
Normal file
89
Zim/Linux/dot_files/Xdefaults/2.txt
Normal file
@@ -0,0 +1,89 @@
|
||||
Content-Type: text/x-zim-wiki
|
||||
Wiki-Format: zim 0.4
|
||||
Creation-Date: 2011-05-28T14:45:43+08:00
|
||||
|
||||
====== 2 ======
|
||||
Created Saturday 28 May 2011
|
||||
http://blog.csdn.net/lyflower/archive/2010/01/02/5120128.aspx
|
||||
|
||||
我的urxvt配置文件如下
|
||||
|
||||
~/.Xresources
|
||||
|
||||
! urxvt color set
|
||||
URxvt.multichar_encoding:utf-8
|
||||
URxvt.background:black
|
||||
URxvt.foreground:green
|
||||
|
||||
URxvt.colorBD:yellow
|
||||
URxvt.colorUL:green
|
||||
URxvt.cursorColor:red3
|
||||
URxvt.color0:black
|
||||
URxvt.color1:red3
|
||||
URxvt.color2:springgreen
|
||||
URxvt.color3:wheat3
|
||||
URxvt.color4:navy
|
||||
URxvt.color5:magenta4
|
||||
URxvt.color6:steelblue1
|
||||
URxvt.color7:gray85
|
||||
URxvt.color8:gray10
|
||||
URxvt.color9:orangered2
|
||||
URxvt.color10:chartreuse3
|
||||
URxvt.color11:lightgoldenrod2
|
||||
URxvt.color12:skyblue1
|
||||
URxvt.color13:pink1
|
||||
URxvt.color14:lightblue1
|
||||
|
||||
! scroll set
|
||||
URxvt.scrollBar:True
|
||||
URxvt.scrollBar_right:True
|
||||
URxvt.scrollBar_floating:True
|
||||
URxvt.scrollstyle:plain
|
||||
URxvt.scrollWithBuffer:false
|
||||
URxvt.saveLines:5000
|
||||
|
||||
! font set
|
||||
URxvt.font:xft:Bitstream Vera Sans Mono-12,xft:Microsoft Yahei:pixelsize=16
|
||||
URxvt.boldFont:xft:Bitstream Vera Sans Mono-12:Bold,xft:Microsoft Yahei:pixelsize=16:Bold
|
||||
|
||||
! Input Method set
|
||||
URxvt.inputMethod:SCIM
|
||||
!URxvt.imLocale:zh_CN.utf8
|
||||
URxvt.imFont:Microsoft Yahei
|
||||
URxvt.preeditType: Root
|
||||
|
||||
! window geometry set
|
||||
URxvt.geometry: 90x25+180+200
|
||||
URxvt.title:Rxvt
|
||||
|
||||
! bg transparent set
|
||||
URxvt.inheritPixmap: true
|
||||
URxvt.tintCddolor: white
|
||||
URxvt.shading: 80
|
||||
|
||||
! Tab set
|
||||
URxvt.perl-ext-common: default,tabbed
|
||||
URxvt.tabbed.tab-fg: 12
|
||||
URxvt.tabbed.tab-bg: 0
|
||||
URxvt.tabbed.tabbar-fg: 4
|
||||
|
||||
Rxvt.menu:/etc/X11/rxvt.menu
|
||||
Rxvt.preeditType:Root
|
||||
Rxvt.transparency:255
|
||||
|
||||
在gentoo中出现如下问题:
|
||||
urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.
|
||||
|
||||
x有两套字体机制.xvt-unicode的编译选项:
|
||||
USE="perl -afterimage -iso14755 -truetype"
|
||||
|
||||
原来是没有编译truetype字体支持!Bitstream Vera Sans Mono字体是使用xft机制的!此机制就是使用truetype字体的基本!
|
||||
|
||||
重新编译rxvt-unicode:
|
||||
# USE="truetype" emerge rxvt-unicode
|
||||
|
||||
问题解决
|
||||
|
||||
xrdb -merge $HOME/.Xresources
|
||||
|
||||
使配置文件生效。
|
||||
243
Zim/Linux/dot_files/Xdefaults/urxvt.txt
Normal file
243
Zim/Linux/dot_files/Xdefaults/urxvt.txt
Normal file
@@ -0,0 +1,243 @@
|
||||
Content-Type: text/x-zim-wiki
|
||||
Wiki-Format: zim 0.4
|
||||
Creation-Date: 2011-05-28T13:40:02+08:00
|
||||
|
||||
====== urxvt ======
|
||||
Created Saturday 28 May 2011
|
||||
http://blog.sina.com.cn/s/blog_4d2bb0b10100llmm.html
|
||||
常用的命令行开关: man rxvt 可以看详细资料
|
||||
|
||||
-fg color 设置前景色
|
||||
|
||||
-bg color 设置背景色
|
||||
|
||||
-fm font 设置多字节语言的字体(显示汉子必须设置好)
|
||||
|
||||
-fn font 一般字体
|
||||
|
||||
-fb font 粗体所用字体
|
||||
|
||||
-km mode 设置多字节显示模式,汉字应该选gb(目前只能支持到gb2312)
|
||||
|
||||
-tr 支持桌面背景透明
|
||||
|
||||
-e command
|
||||
|
||||
执行一个命令,一般这是最后一个开关,
|
||||
|
||||
后面的所有内容都属于这个命令的选项了
|
||||
|
||||
可用的资源名称 : rxvt –help可以看到更详细资料
|
||||
|
||||
termName: string 标题
|
||||
|
||||
geometry: geometry 启动后窗口的大小及位置
|
||||
|
||||
scrollBar: boolean 是否显示滚动条
|
||||
|
||||
scrollBar_right: boolean 滚动条在右侧还是左侧
|
||||
|
||||
scrollBar_floating: boolean 滚动条浮动
|
||||
|
||||
scrollWithBuffer: boolean 滚动内容缓存
|
||||
|
||||
mouseWheelScrollPage: boolean 支持滚轮
|
||||
|
||||
background: color 背景
|
||||
|
||||
foreground: color 前景
|
||||
|
||||
color0: color ansi color 0
|
||||
|
||||
color1: color ansi color 1
|
||||
|
||||
color2: color ansi color 2
|
||||
|
||||
color3: color ansi color 3
|
||||
|
||||
color4: color ansi color 4
|
||||
|
||||
color5: color ansi color 5
|
||||
|
||||
color6: color ansi color 6
|
||||
|
||||
color7: color ansi color 7
|
||||
|
||||
color8: color 高亮ansi color 0
|
||||
|
||||
color9: color 高亮ansi bold color 1
|
||||
|
||||
color10: color 高亮ansi bold color 2
|
||||
|
||||
color11: color 高亮ansi bold color 3
|
||||
|
||||
color12: color 高亮ansi bold color 4
|
||||
|
||||
color13: color 高亮ansi bold color 5
|
||||
|
||||
color14: color 高亮ansi bold color 6
|
||||
|
||||
color15: color 高亮ansi bold color 7
|
||||
|
||||
colorBD: color 默认前景上的粗体颜色
|
||||
|
||||
colorUL: color 显示下划线的颜色
|
||||
|
||||
colorRV: color 反显所用的颜色
|
||||
|
||||
backgroundPixmap: file[;geom] 背景的颜色
|
||||
|
||||
menu: name[;tag] 指定rxvt的菜单,
|
||||
|
||||
boldFont: fontname 粗体的字体
|
||||
|
||||
font: fontname 指定一般字体
|
||||
|
||||
fontn: fontname 指定几个字体,可随时切换,n=1-6
|
||||
|
||||
mfont: fontname 指定多字节字体
|
||||
|
||||
mfontn: fontname 指定几个字体,可随时切换,n=1-6
|
||||
|
||||
multichar_encoding: mode 多字节编码设置
|
||||
|
||||
inputMethod: name 输入法一般设置为xim
|
||||
|
||||
preeditType type 输入法样式可选:Root(置底) OverTheSpot(跟随) OffTheSpot OnTheSpot,后两种不是所有的都支持
|
||||
|
||||
title: string 标题
|
||||
|
||||
iconName: string 左上角的图标
|
||||
|
||||
cursorColor: color 光标颜色
|
||||
|
||||
saveLines: number 屏幕缓冲行数
|
||||
|
||||
thickness: number 边框厚度
|
||||
|
||||
backspacekey: string 回车键
|
||||
|
||||
deletekey: string 删除键
|
||||
|
||||
scrollstyle: mode 滚动条样式
|
||||
|
||||
scrollBar_align: mode 滚动条对齐
|
||||
|
||||
print-pipe: string 打印管道
|
||||
|
||||
以上的资源字符串都可以写入~/.Xresources文件,用xrdb读入,而不用重起Xserver。
|
||||
|
||||
下面说一下linux下颜色的设置,其中Xorg已经为一些常用的颜色命名了。文件在/usr/lib/X11/rgb.txt中,大家可以在其中找到自己喜欢的颜色。另外还可以用rgb的格式直接指定,象网页中常用的格式一样比如白色:#FFFFFF, 黑色#000000等等
|
||||
|
||||
|
||||
! urxvt color set
|
||||
URxvt.background:black
|
||||
URxvt.foreground:white
|
||||
URxvt.colorBD:yellow
|
||||
URxvt.colorUL:Green
|
||||
URxvt.color0: #000000
|
||||
URxvt.color1: #CC0000
|
||||
URxvt.color2: #4E9A06
|
||||
URxvt.color3: #C4A000
|
||||
URxvt.color4: #3465A4
|
||||
URxvt.color5: #75507B
|
||||
URxvt.color6: #06989A
|
||||
URxvt.color7: #D3D7CF
|
||||
URxvt.color8: #555753
|
||||
URxvt.color9: #EF2929
|
||||
URxvt.color10: #8AE234
|
||||
URxvt.color11: #FCE94F
|
||||
URxvt.color12: #729FCF
|
||||
URxvt.color13: #AD7FA8
|
||||
URxvt.color14: #34E2E2
|
||||
URxvt.color15: #EEEEEC
|
||||
|
||||
! scroll set
|
||||
URxvt.scrollBar:false
|
||||
URxvt.scrollBar_right:True
|
||||
URxvt.scrollBar_floating:True
|
||||
URxvt.scrollstyle:plain
|
||||
URxvt.scrollWithBuffer:false
|
||||
URxvt.saveLines:5000
|
||||
|
||||
! font set
|
||||
URxvt.font:xft:Liberation Mono:pixelsize=14:antialias=false,xft:Microsoft Yahei:pixelsize=14
|
||||
URxvt.boldFont:xft:Liberation Mono:pixelsize=14:antialias=false:Bold,xft:Microsoft Yahei:pixelsize=14:Bold
|
||||
|
||||
! Input Method set
|
||||
URxvt.inputMethod:ibus
|
||||
!URxvt.imFont:Liberation Mono
|
||||
!URxvt.preeditType: Root
|
||||
|
||||
! window geometry set
|
||||
URxvt.geometry: 80x30
|
||||
URxvt.title:Prongs-Rxvt
|
||||
|
||||
! bg transparent set
|
||||
!URxvt.inheritPixmap: true
|
||||
!URxvt.tintCddolor: white
|
||||
!URxvt.shading: 80
|
||||
|
||||
! Tab set
|
||||
URxvt.perl-ext-common: default,tabbed,matcher
|
||||
!URxvt.tabbed.tab-fg: 12
|
||||
!URxvt.tabbed.tab-bg: 0
|
||||
!URxvt.tabbed.tabbar-fg: 4
|
||||
|
||||
Rxvt.menu:/etc/X11/rxvt.menu
|
||||
!Rxvt.preeditType:Root
|
||||
!Rxvt.transparency:255
|
||||
|
||||
! 开启标签功能
|
||||
!URxvt.perl-ext-common: default,tabbed
|
||||
|
||||
!滚动条
|
||||
Rxvt.scrollBar:True
|
||||
Rxvt.scrollBar_right:True
|
||||
Rxvt.scrollBar_floating: False
|
||||
Rxvt.scrollstyle:plain
|
||||
|
||||
URxvt.urlLauncher: firefox
|
||||
URxvt.matcher.button: 1
|
||||
!URxvt.perl-ext-common: matcher
|
||||
|
||||
|
||||
URxvt.depth:32
|
||||
URxvt.background:rgba:0000/0000/0000/dddd
|
||||
|
||||
rxvt虽然不支持Ctrl+C和Ctrl+V的复制、粘贴,但是它有自己的一套操作方式。Linux下普遍使用的图形界面均为X11,而X11支持一种独特的复制粘贴方式,即如果你在另一个程序比如文本编辑器中使用鼠标拖动来高亮一段文字后,不用进行任何操作,此时选中的内容已经复制到剪贴板中了,随后在rxvt中单击鼠标中键即可将选中内容粘贴到其中,此外,如果鼠标没有中键,可以同时按下左右键以达到同样的效果,还可以使用 Shift+Insert组合键来完成粘贴;反之,从rxvt中向外复制内容同样如此。
|
||||
|
||||
虽然rxvt对东亚文字支持不好,但是rxvt有几个修改版,其中一个就是rxvt-unicode。顾名思义,rxvt-unicode支持unicode编码,因此对东亚文字的支持完全没有问题。安装完成后,使用urxvt即可打开之。
|
||||
|
||||
|
||||
标签功能很实用,一般为了达到复用终端窗口的目的会采用两种方式:一是配合screen使用,另一个就是启用标签。然而前者有一个缺点就是不直观,标签页恰好能弥补这个缺陷。urxvt不愧是个功能强大的终端工具,如果在编译时开启perl支持,则urxvt可启用多标签功能。用法如下:
|
||||
|
||||
一是在启动的时候加入命令行参数:
|
||||
|
||||
urxvt -pe tabbed
|
||||
|
||||
二是在配置文件“.Xresources”中添加如下配置信息:
|
||||
|
||||
URxvt.perl-ext-common: default,tabbed
|
||||
|
||||
则默认情况下执行urxvt就会打开多标签功能。urxvt的标签支持使用鼠标操作,同时可以使用Shift+左右箭头来切换标签页,使用Shift+向下箭头开启新标签。
|
||||
|
||||
另外一个功能就是可以通过在urxvt中的链接上点击鼠标左键来通过设定的浏览器打开之。首先在“.Xresources”文件中添加如下内容:
|
||||
|
||||
URxvt.urlLauncher: firefox
|
||||
URxvt.matcher.button: 1
|
||||
|
||||
然后使用如下命令打开urxvt:
|
||||
|
||||
urxvt -pe matcher
|
||||
|
||||
即可。也可以在配置文件中添加上述内容之后再添加一行:
|
||||
|
||||
URxvt.perl-ext-common: matcher
|
||||
|
||||
此后即默认开启在终端窗口中打开链接的功能。注意修改“.Xresources”文件后需要执行如下命令才能使修改后的配置文件生效:
|
||||
|
||||
xrdb ~/.Xresources
|
||||
|
||||
|
||||
|
||||
30
Zim/Linux/dot_files/Xresources.txt
Normal file
30
Zim/Linux/dot_files/Xresources.txt
Normal file
@@ -0,0 +1,30 @@
|
||||
Content-Type: text/x-zim-wiki
|
||||
Wiki-Format: zim 0.4
|
||||
Creation-Date: 2011-03-30T18:55:59+08:00
|
||||
|
||||
====== Xresources ======
|
||||
Created Wednesday 30 March 2011
|
||||
|
||||
!注意:Xresources 和Xdefault 两文件可以合在一起
|
||||
|
||||
!终端xterm的配置
|
||||
!~/.Xresources
|
||||
!font and locale
|
||||
xterm*utf8: 1
|
||||
xterm*locale: true
|
||||
xterm*utf8Title: true
|
||||
xterm*renderFont: true
|
||||
xterm*preeditType: Root
|
||||
xterm*xftAntialias: true
|
||||
xterm*background: 0
|
||||
xterm*foreground: #ffffff
|
||||
!下面是是刚才推荐的编程用英文字体
|
||||
xterm*faceName:Inconsolata:antialias=True:pixelsize=18
|
||||
!中文字体支持,选的是文泉驿
|
||||
xterm*faceNameDoublesize: WenQuanYi Zen Hei:pixelsize=14
|
||||
!设置中文输入法
|
||||
XTerm*inputMethod: ibus
|
||||
|
||||
然后执行:
|
||||
xrdb .Xresources
|
||||
使设置生效
|
||||
20
Zim/Linux/dot_files/bashrc.txt
Normal file
20
Zim/Linux/dot_files/bashrc.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
Content-Type: text/x-zim-wiki
|
||||
Wiki-Format: zim 0.4
|
||||
Creation-Date: 2011-03-27T20:19:29+08:00
|
||||
|
||||
====== bashrc ======
|
||||
Created Sunday 27 March 2011
|
||||
|
||||
Sunday 27/03/2011
|
||||
# Check for an interactive session
|
||||
[ -z "$PS1" ] && return
|
||||
PS1='[\u@\h \W]\$ '
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias wnc="wicd-client &>/dev/null &"
|
||||
alias ff="firefox &>/dev/null &"
|
||||
alias cl="clear"
|
||||
alias vim="gvim"
|
||||
alias curl="curl -4"
|
||||
alias vpdf="apvlv &"
|
||||
alias fm="pcmanfm &>/dev/null &"
|
||||
130
Zim/Linux/dot_files/emacs.txt
Normal file
130
Zim/Linux/dot_files/emacs.txt
Normal file
@@ -0,0 +1,130 @@
|
||||
Content-Type: text/x-zim-wiki
|
||||
Wiki-Format: zim 0.4
|
||||
Creation-Date: 2011-05-22T13:41:42+08:00
|
||||
|
||||
====== emacs ======
|
||||
Created Sunday 22 May 2011
|
||||
|
||||
;;for fullscreen
|
||||
(defun fullscreen ()
|
||||
(interactive)
|
||||
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
|
||||
'(2 "_NET_WM_STATE_FULLSCREEN" 0)))
|
||||
(global-set-key [f11] 'fullscreen)
|
||||
|
||||
;;for auto-complete
|
||||
(add-to-list 'load-path "~/.emacs.d")
|
||||
(require 'auto-complete-config)
|
||||
(add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")
|
||||
(ac-config-default)
|
||||
|
||||
;; set for yasnipper
|
||||
(require 'yasnippet-bundle)
|
||||
|
||||
;;for flymake syntax check
|
||||
;;(require 'flymake-mode)
|
||||
;;(setq flymake-log-level 0)
|
||||
|
||||
;;set for gccsense and gcc-code-assist
|
||||
(require 'gccsense)
|
||||
(global-set-key (kbd "M-TAB") (quote ac-complete-gccsense))
|
||||
(gccsense-flymake-setup)
|
||||
|
||||
;;for backward-word delete
|
||||
(define-key global-map (kbd "C-h") 'delete-backward-char)
|
||||
(define-key global-map (kbd "M-h") 'backward-kill-word)
|
||||
|
||||
;;for color-theme
|
||||
(add-to-list 'load-path "~/.emacs.d/color-theme-6.6.0")
|
||||
(require 'color-theme)
|
||||
(color-theme-initialize)
|
||||
(color-theme-oswald)
|
||||
|
||||
|
||||
(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.
|
||||
'(column-number-mode t)
|
||||
'(default-input-method "chinese-py-punct")
|
||||
'(display-time-mode t)
|
||||
'(ecb-options-version "2.40")
|
||||
;; '(show-paren-mode t)
|
||||
'(size-indication-mode t)
|
||||
'(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify)))
|
||||
'(tool-bar-mode nil)
|
||||
'(which-function-mode nil))
|
||||
(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.
|
||||
)
|
||||
|
||||
;; set mark to C-\ ,
|
||||
(global-set-key "\C-\\" 'set-mark-command)
|
||||
|
||||
|
||||
;;set for ido-mode
|
||||
(ido-mode t)
|
||||
(setq ido-enable-flex-matching t)
|
||||
(setq ido-create-new-buffer t)
|
||||
(setq ido-confirm-unique-completion nil)
|
||||
(setq ido-use-filename-at-point t)
|
||||
(setq ido-show-dot-for-dired t)
|
||||
|
||||
;; set for default major-mode
|
||||
(setq-default default-major-mode 'text-mode)
|
||||
|
||||
;; auto pair
|
||||
;; (setq-default skeleton-pair t)
|
||||
;; (global-set-key (kbd "(") 'skeleton-pair-insert-maybe)
|
||||
;; (global-set-key (kbd "{") 'skeleton-pair-insert-maybe)
|
||||
;; (global-set-key (kbd "`") 'skeleton-pair-insert-maybe)
|
||||
;; (global-set-key (kbd "[") 'skeleton-pair-insert-maybe)
|
||||
;; (global-set-key (kbd "<") 'skeleton-pair-insert-maybe)
|
||||
;; (global-set-key (kbd "\"") 'skeleton-pair-insert-maybe)
|
||||
|
||||
|
||||
|
||||
;; Load CEDET.
|
||||
;; See cedet/common/cedet.info for configuration details.
|
||||
(load-file "~/.emacs.d/cedet-1.0/common/cedet.el")
|
||||
|
||||
;; Enable EDE (Project Management) features
|
||||
(global-ede-mode 1)
|
||||
|
||||
;; Enabling Semantic (code-parsing, smart completion) features
|
||||
;; Select one of the following:
|
||||
;; * This enables even more coding tools such as intellisense mode
|
||||
;; decoration mode, and stickyfunc mode (plus regular code helpers)
|
||||
(semantic-load-enable-gaudy-code-helpers)
|
||||
|
||||
;; if you want to enable support for gnu global
|
||||
(require 'semanticdb-global)
|
||||
(semanticdb-enable-gnu-global-databases 'c-mode)
|
||||
(semanticdb-enable-gnu-global-databases 'c++-mode)
|
||||
|
||||
;;for ecb
|
||||
(add-to-list 'load-path "~/.emacs.d/ecb-2.40")
|
||||
(require 'ecb-autoloads)
|
||||
|
||||
;;set for xcscope
|
||||
(require 'xcscope)
|
||||
|
||||
;;set for gtags
|
||||
(autoload 'gtags-mode "gtags");;Start Emacs and execute gtags-mode function.
|
||||
(setq c-mode-hook
|
||||
'(lambda ()
|
||||
(gtags-mode 1)));get into gtags-mode whenever you get into c-mode
|
||||
|
||||
;;set for auto-newline and hungry-state
|
||||
(add-hook 'c-mode-hook
|
||||
'(lambda ()
|
||||
(c-set-style "k&r")
|
||||
(c-toggle-auto-state)))
|
||||
|
||||
|
||||
|
||||
|
||||
51
Zim/Linux/dot_files/emacs/gnus.txt
Normal file
51
Zim/Linux/dot_files/emacs/gnus.txt
Normal file
@@ -0,0 +1,51 @@
|
||||
Content-Type: text/x-zim-wiki
|
||||
Wiki-Format: zim 0.4
|
||||
Creation-Date: 2011-05-22T13:42:44+08:00
|
||||
|
||||
====== gnus ======
|
||||
Created Sunday 22 May 2011
|
||||
|
||||
(setq user-full-name "geekard")
|
||||
(setq user-mail-address "geekard@gmail.com")
|
||||
|
||||
;; newsgroups
|
||||
(setq gnus-select-method '(nntp "news.gmane.org"))
|
||||
|
||||
;; SMTP
|
||||
(setq message-send-mail-function 'smtpmail-send-it)
|
||||
(setq smtpmail-default-smtp-server "smtp.gmail.com")
|
||||
(setq smtpmail-smtp-service 587)
|
||||
(setq smtpmail-starttls-credentials
|
||||
'(("smtp.gmail.com"
|
||||
587
|
||||
nil
|
||||
nil)))
|
||||
(setq smtpmail-auth-credentials
|
||||
'(("smtp.gmail.com"
|
||||
587
|
||||
"geekard@gmail.com"
|
||||
nil)))
|
||||
;; IMAP
|
||||
(add-to-list 'gnus-secondary-select-methods '(nnimap "gmail"
|
||||
(nnimap-address "imap.gmail.com")
|
||||
(nnimap-server-port 993)
|
||||
(nnimap-authinfo-file "~/.authinfo")
|
||||
(nnimap-stream ssl)))
|
||||
;;the format of authinfo is:
|
||||
;;machine imap.gmail.com login username@gmail.com password secret port 993
|
||||
;;eg: machine smtp.gmail.com login geekard@gmail.com 701178zj12912 secret port 857
|
||||
|
||||
(setq nnimap-split-inbox '("INBOX"))
|
||||
(setq nnimap-split-rule 'nnmail-split-fancy)
|
||||
(setq gnus-parameters
|
||||
'(("nnimap+imap.gmail.com.*" (gcc-self . t))))
|
||||
|
||||
(setq gnus-fetch-old-headers t)
|
||||
(setq gnus-permanently-visible-groups "gmail")
|
||||
|
||||
(setq gnus-posting-styles
|
||||
'((".*"
|
||||
("CC" "geekard@gmail.com")
|
||||
(address "geekard@gmail.com"))))
|
||||
|
||||
|
||||
24
Zim/Linux/dot_files/esmtp.txt
Normal file
24
Zim/Linux/dot_files/esmtp.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
Content-Type: text/x-zim-wiki
|
||||
Wiki-Format: zim 0.4
|
||||
Creation-Date: 2011-05-23T14:44:06+08:00
|
||||
|
||||
====== esmtp ======
|
||||
Created Monday 23 May 2011
|
||||
|
||||
identity = geekard@gmail.com
|
||||
hostname = smtp.gmail.com:587
|
||||
username = 'geekard@gmail.com'
|
||||
password = '701178zj12912'
|
||||
starttls required
|
||||
default
|
||||
|
||||
identity = geekard@qq.com
|
||||
hostname smtp.qq.com:587
|
||||
username = 'geekard'
|
||||
password = 'ho4o44'
|
||||
starttls required
|
||||
|
||||
mda = '/usr/lib/procmail -d %T'
|
||||
#mda = '/usr/bin/mail'
|
||||
|
||||
|
||||
25
Zim/Linux/dot_files/fetchmail.txt
Normal file
25
Zim/Linux/dot_files/fetchmail.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
Content-Type: text/x-zim-wiki
|
||||
Wiki-Format: zim 0.4
|
||||
Creation-Date: 2011-05-23T14:44:20+08:00
|
||||
|
||||
====== fetchmail ======
|
||||
Created Monday 23 May 2011
|
||||
|
||||
# Configuration created Sun May 22 22:15:23 2011 by fetchmailconf 1.57
|
||||
#set logfile "~/tmp/fetchmail.log"
|
||||
set postmaster "geekard"
|
||||
set bouncemail
|
||||
set no spambounce
|
||||
set softbounce
|
||||
set properties ""
|
||||
set daemon 100
|
||||
poll pop.gmail.com with proto POP3 and options uidl
|
||||
user 'geekard' there with password '701178zj12912' is 'geekard' here options keep stripcr ssl
|
||||
mda '/usr/bin/esmtp -f %F %T'
|
||||
|
||||
poll pop.qq.com with proto POP3
|
||||
user 'geekard' there with password 'ho4o44' is 'geekard' here options keep stripcr ssl
|
||||
#mda '/usr/bin/mail'
|
||||
mda '/usr/bin/esmtp -f %F %T'
|
||||
|
||||
|
||||
29
Zim/Linux/dot_files/procmail.txt
Normal file
29
Zim/Linux/dot_files/procmail.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
Content-Type: text/x-zim-wiki
|
||||
Wiki-Format: zim 0.4
|
||||
Creation-Date: 2011-05-23T14:44:27+08:00
|
||||
|
||||
====== procmail ======
|
||||
Created Monday 23 May 2011
|
||||
|
||||
MAILDIR=$HOME/Mail
|
||||
# set the following to yes for debugging
|
||||
VERBOSE=no
|
||||
# to enable logging
|
||||
#LOGFILE=$HOME/.procmaillog
|
||||
FORMAIL=/usr/bin/formail
|
||||
|
||||
#gmail
|
||||
:0:
|
||||
* ^TOgeekard@gmail\.com
|
||||
$MAILDIR/gmail/
|
||||
|
||||
#qq
|
||||
:0:
|
||||
* ^TOgeekard@qq\.com
|
||||
$MAILDIR/qq/
|
||||
|
||||
|
||||
# Accept all the rest to your default mailbox
|
||||
:0:
|
||||
$MAILDIR/others/
|
||||
|
||||
40
Zim/Linux/dot_files/vimrc.txt
Normal file
40
Zim/Linux/dot_files/vimrc.txt
Normal file
@@ -0,0 +1,40 @@
|
||||
Content-Type: text/x-zim-wiki
|
||||
Wiki-Format: zim 0.4
|
||||
Creation-Date: 2011-03-27T20:19:39+08:00
|
||||
|
||||
====== vimrc ======
|
||||
Created Sunday 27 March 2011
|
||||
|
||||
Sunday 27/03/2011
|
||||
set nocompatible
|
||||
|
||||
set autoindent
|
||||
set smartindent
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set softtabstop=4
|
||||
set expandtab
|
||||
colorscheme desert
|
||||
|
||||
set ignorecase
|
||||
set incsearch
|
||||
set smartcase
|
||||
set showmatch
|
||||
|
||||
|
||||
set nu
|
||||
set ruler
|
||||
set nohls
|
||||
set virtualedit=all
|
||||
set background=dark
|
||||
|
||||
set fileencodings=utf8,ucs-bom,chinese
|
||||
set encoding=utf8
|
||||
set termencoding=utf8
|
||||
set langmenu=zh_CN
|
||||
set imcmdline
|
||||
|
||||
if has("gui_gtk2")
|
||||
set guifont=Bitstream\ Vera\ Sans\ Mono\ 12,Fixed\ 12
|
||||
set guifontwide=Microsoft\ Yahei\ 12,WenQuanYi\ Zen\ Hei\12
|
||||
endif
|
||||
16
Zim/Linux/dot_files/xinitrc.txt
Normal file
16
Zim/Linux/dot_files/xinitrc.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
Content-Type: text/x-zim-wiki
|
||||
Wiki-Format: zim 0.4
|
||||
Creation-Date: 2011-03-27T20:19:49+08:00
|
||||
|
||||
====== xinitrc ======
|
||||
Created Sunday 27 March 2011
|
||||
|
||||
Sunday 27/03/2011
|
||||
#urxvt &
|
||||
#xterm &
|
||||
#chromium &
|
||||
xrdb .Xresources & #这个使设置终端配置(Xdefaults)生效
|
||||
firefox &
|
||||
ibus-daemon --xim &
|
||||
#exec openbox-session
|
||||
exec ck-launch-session dbus-launch awesome
|
||||
Reference in New Issue
Block a user