What Is the Name of the Linux-based OS: A Survey

You may already well know “Linux” and may also use the “operating system based on the Linux kernel” directly or indirectly (you are indirectly using it now as this site is hosted on Linux). But how should we name the OS based on Linux? You may know there is GNU/Linux naming controversy. Different people have different opinions about this. Today, let’s see how do these widely used distributions call themselves by looking at their “about” web pages. » Read more

Keyboard Key Mapping for Emacs: Evil Mode and Rearranging Alt, Ctrl and Win Keys

Ctrl keys are important and possibly most frequently used in Emacs. However, it is painful on today’s common PC keyboards since Ctrl keys are usually in the corner of the keyboard main area. Why the key mappings in Emacs are designed like this? After it was designed, Emacs was commonly on the Lisp Machine keyboards with Ctrl keys closer to the space bar as show below (src. » Read more

Making Emacs Startup Faster

I use Emacs in terminals and start/close Emacs frequently as needed like in a file checking-editing-closing loop. However, Emacs seems take some time to start up especially some heavy modes are used. How to make Emacs start up faster? (If you just want the solution/script first, find the command in the summary section.) My solution is to make use of the server/client feature of Emacs ∞ This is how it works. » Read more

Vim Howtos and Tips

Vim is a fast and handy editor on *nix systems. Like Emacs, Vim has a steep learning curve as you get constantly get new things. However, the effort deserves it as you efficiency is highly improved. Here, I summarize the tips and howtos I learned using Vim. Some previous posts on vim are tagged with vim.Table of Contents [hide]1 My .vimrc and .vim file1.1 How to use these files2 Previous posts tagged vim 3 Latex Writing in Vim with the Help of vim-latex3.1 master file 3.2 List references to sections, figure and tables to insert 3.3 List citations from the bibtex file to insertMy .vimrc and .vim file ∞ My .vimrc and .vim files: https://github.com/zma/vim-config How to use these files ∞ cd /path/to/vim-config/ git submodule update --init If you never configured Vim: cd ln -s /path/to/vim-config/.vimrc ./ ln -s /path/to/vim-config/.vim ./ If you ever configured your Vim, you may need to merge my configurations to yours. » Read more

Vim + cgdb

I begin to use vim for programming. I like the tools that focus on one function. I used to use emacs. But I think I like vim more. For debugging, I use gdb. But I use the front end cgdb. I can see the codes with the cursor when debugging. I can use F8 for next instead of n + enter. » Read more

Emacs Tips and Howtos

With Emacs, I feel happy. I love the rich functions of Emacs, such as compiling, quickly jumping to the lines with compilation error and debugging with gdb, and more. I ever wrote small tips posts about Emacs before. But it is a good idea to put them together and keep adding new ones. Here comes this post on Emacs tip and howtos, more or less like a cheat sheet and FAQ. » Read more

My Vim Emacs and Other Configuration Files

My .vimrc .emacc files can be downloaded from here: http://github.com/zma/config_files My text editors are especially configured for source code such as C/C++/shell editing. I prefer to use spaces instead of tab. And my favourite tab size is 4. Some vimrc parameters and the comments are listed here. Details and the updated configuration files please refer to the git repository. The .vimrc: set number " show line numberset backup " keep a backup file set backupdir=~/.vibackup " keep all backup files in one central dir set backupcopy=yesset tabstop=4 set shiftwidth=4 set expandtabset autoindent " always set autoindenting on set cindent " indent c code syntax onset incsearch " do incremental searching set hlsearch " high light the search contentset history=50 " keep 50 lines of command line history set ruler " show the cursor position all the time set showcmd " display incomplete commands This xstartup configuration files makes VNC to use gnome as the desktop environment of remote server instead of the default (twm). » Read more

Chinese Charactor Configuration on Fedora 11

最新的更新版本请看: Fedora 中文字体设置. Updated on 26 Feb. 2010 ∞ 使用Linux时我个人倾向使用英文环境系统,而Fedora11在英文环境下中文字体有时会不太好看,经常遇到需要字体优化美化的问题。 以下是我的配置方案,经测试效果还算不错,解决了Fedora 11 中文字体难看的问题: 方案1:使用uming和ukai字体,即AR PL UMing CN等。 关键是使用的字体包如下: 首先要安装这两个字体: cjkuni-ukai-fonts cjkuni-uming-fonts 然后配置一下~/.fonts.conf文件. 使sans-serif serif monospace字体中文使用uming/ukai即可. 我的.fonts.conf文件可以从这里下载(两种选择, 我喜欢前者): http://github.com/zma/config_files 使用Liberation和uming/ukai字体: .fonts.cofn.liberation 使用dejavu和uming/ukai字体: .fonts.conf.dejavu 下载后放到自己的$HOME下改名为.fonts.conf就可以了。 使用uming字体效果如下(请放大后看效果): chinese-fonts-Screenshot-Mozilla Firefox 3.5 Beta 4 方案2:安装文泉驿字体,这个非常简单,安装相应包即可了。 如果喜欢其它的字体选择性的安装上就可以了,只要注意只安装自己需要的就行了。有人使用微软雅黑字体,首先这是侵权的,其次开源的字体做得其实已经很不错了。 最后将字体平滑选项打开, KDE和gnome都有相关设置方法。 以上内容只是针对使用xft字体系统的设置。对于使用核心字体系统的X程序来说字体依然会出现很丑的情况。 下面是针对emacs的设置方法: 首先需要安装这个字体包: xorg-x11-fonts-misc 注意到在中文系统下emacs的中文显示非常好,而在英文环境中去非常差,我们可以利用这一点,在运行emacs前首先将系统环境设为中文即可。 在~/bin/下建立一文件ema 内容如下: #!/bin/bashrm -f ~/.emacs ln -s ~/.emacs.x ~/.emacsLANG=zh_CN.UTF-8emacs --fullheight -r $* 关于emacs的更详细配置请看这里: 我的emacs配置文件和启动脚本 然后加入执行权限即可: chmod +x ~/bin/ema 为了方便将菜单中的emacs启动程序也改为ema,这样使用gnome-do等快速启动工具可以直接打开我们设置的启动环境了。 效果截图如下: Screenshot-.emacs » Read more