2013年9月5日

rxvt,256色,unicode版 urxvt を Ubuntu12.04 に入れる

** rxvt,256色,unicode版 urxvt を入れる
*** install

軽量ターミナル rxvt の256色、unicode版 urxvt と、クリップボードを使用する xsel
と、拡張の perl

===
sudo aptitude install rxvt-unicode-256color xsel
git clone git://github.com/muennich/urxvt-perls.git ~/.urxvt/urxvt-perls
===
*** 設定ファイル
#+BEGIN_SRC emacs-lisp :results silent :tangle ~/.Xresources
! ターミナルの名前
urxvt*termName: rxvt

! フォントの設定
! Ritcy Discord,サイズ12,アンチエイリアスON
urxvt.font: xft:Ricty Discord:size=12:antialias=true
urxvt.boldFont: xft:Ricty Discord:Bold:size=12:antialias=true
URxvt.italicFont: xft:Ricty Discord:Bold:size=12:antialias=true
URxvt.boldItalicFont: xft:Ricty Discord:Bold:size=12:antialias=true

! スクロールバーなし
urxvt.scrollBar: false

! 履歴に残す数
urxvt.saveLines: 256

! 背景色
urxvt*foreground:green3

! 前景色
urxvt*background:black

! その他の色の設定
URxvt.color0: #000000
URxvt.color1: #FF4500
URxvt.color2: #9ACD32
URxvt.color3: #DAA520
URxvt.color4: #D2691E
URxvt.color5: #ff00ff
URxvt.color6: #40E0D0
URxvt.color7: #d9d9d9
URxvt.color8: #d2691e
URxvt.color9: #ff0000
URxvt.color10: #00ff00
URxvt.color11: #ffff00
URxvt.color12: #87ceff
URxvt.color13: #ff00ff
URxvt.color14: #00ffff
URxvt.color15: #00ff00

! input with IM at cursor position
urxvt.preeditType: OverTheSpot

! カスタマイズ用のファイルの場所をフルパスで指定
URxvt.perl-lib:/home/clothoid/.urxvt/urxvt-perls/

! 各ファイルをカンマ区切りで読み込む
URxvt.perl-ext-common: keyboard-select,url-select,clipboard

! キーボードセレクトモードを使う
URxvt.keysym.M-Escape: perl:keyboard-select:activate

! サーチモードを M-s に割り当てる
URxvt.keysym.M-s: perl:keyboard-select:search

! url セレクトモードを使う
URxvt.keysym.M-u: perl:url-select:select_next
! マウスの左クリックで url を開く (デフォルトは 2)
URxvt.url-select.button:1
! url は firefox の新しいタブで開く
URxvt.url-select.launcher:firefox -new-tab
! url にはアンダーラインをつける
URxvt.url-select.underline:true

! クリップボードにキーバインドを割り当てる
URxvt.keysym.C-w: perl:clipboard:copy
URxvt.keysym.C-y: perl:clipboard:paste
URxvt.keysym.M-C-y: perl:clipboard:paste_escaped
#+END_SRC

*** 設定反映
コマンドは以下
===
xrdb -merge ~/.Xresources
===


環境
===
~ $ uname -a
Linux D257-A71C 3.2.0-52-generic #78-Ubuntu SMP Fri Jul 26 16:23:24 UTC 2013 i686 i686 i386 GNU/Linux
~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.3 LTS
Release: 12.04
Codename: precise
~ $ emacs --version
GNU Emacs 24.3.1
Copyright (C) 2013 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
~ $ ratpoison -v
ratpoison 1.4.6 (built Aug 27 2013 19:09:05)
Copyright (C) 2000-2008 Shawn Betts

0 件のコメント:

コメントを投稿