Showing posts with label Command. Show all posts
Showing posts with label Command. Show all posts

Wednesday, April 7, 2010

Emacs: minimize parentheses

Minimize the contents of parentheses such as function { XXXX }; to function {...};

C-c C-o

easier to view the whole structure.

Emacs: Delete empty lines

C-x C-o

Sunday, February 28, 2010

searching Bluetooth devices from terminal command

type in terminal

$sudo hidd --search

make sure the targeting device is emitting signal by, for example, pressing a button like "connect".

Saturday, February 27, 2010

YaTeX command list

 コンパイル、プレビュー、印刷 (C-c t)
C-c t j コンパイル(platex)
rコンパイル(領域指定)
kコンパイル中断
bjbibtex
 pプレビュー(xvdi)
l印刷(lpr)
s
※印刷環境の整備ができていないため、現在直接印刷はできません
 入力補完
(La)TeXでは多くの環境が提供されるため、すべてのキーバインドを一度に覚えることはできないため、コマンド一覧を表記するコマンドを示す。
C-c aアクセント補完
b SPCbegin型補完
B SPCbegin型補完(領域指定)
b 環境の頭文字begin型補完(即時)
B 環境の頭文字begin型補完(即時・領域指定)
eend補完
llarge型補完
Llarge型補完(領域指定)
mmaketitle補完
ssection型補完
Ssection型補完(領域指定)
SPC随時補完
;数式記号イメージ補完
(数式環境内で)
:ギリシャ文字イメージ補完
(数式環境内で)
 カーソルジャンプ
C-c ’ コンパイルエラー個所へ
g対応するオブジェクト
4g別ウィンドウで対応するオブジェクトへ
^メインファイルへ
4^別ウィンドウでメインファイルへ
ESCC-a環境の先頭
ESCC-e環境の末尾
ESCC-h環境全体をマーク
 コメントアウト
C-c>領域/環境のコメントアウト
<領域/環境のコメント解除
.段落/環境宣言コメントアウト
,段落/環境宣言コメント解除
 その他
C-ci itemの桁揃え
cLaTeXコマンド変更
kコマンドの削除
)領域を()で括る
}領域を{}で括る
$領域を$$で括る
wモードの切り替え
%%#記法の編集
&tabular/array桁位置表示
?オンラインヘルプ
/オンラインapropos 
dインクルード構造ブラウズ
ESCRETおまかせ改行
tabular,array,itemize,enumerate,list,descriptionで
 
information from 
http://www.yuge.ac.jp/home/~nagao/teaching/LaTeX/yatex.html

Emacs in terminal

booting Emacs in terminal instead of Xwindow system.

$emacs -nw

LaTeX compile and producing PDF file

$latex xxx.tex
$dvipdf xxx.dvi

Tuesday, February 23, 2010

Emacs: shell-pop

"shell-pop" is an Emacs mode that enables pop-up a window of terminal by typing
Ctrl + t

this is mush quicker than switching buffers to eshell to ansi-mode

require shell-pop.el from
http://www.emacswiki.org/emacs-en/ShellPop

in .emacs


;; shell-pop
;; C-tでshellをポップアップ
(require 'shell-pop)
(shell-pop-set-internal-mode "ansi-term") ;; ansi-termを使うよ
(shell-pop-set-internal-mode-shell "/bin/zsh") ;; zshを使うよ
(defvar ansi-term-after-hook nil)
(add-hook 'ansi-term-after-hook
          '(lambda ()
             (define-key term-raw-map "\C-t" 'shell-pop)))
(defadvice ansi-term (after ansi-term-after-advice (org))
  "run hook as after advice"
  (run-hooks 'ansi-term-after-hook))
(ad-activate 'ansi-term)
(global-set-key "\C-t" 'shell-pop)

Sunday, February 21, 2010

Printing codes in Color with Emacs

If you want to print source codes whose key words appear in color,

M-x ps-print-buffer-with-faces

But some colors of key words seem too pale to read accurately...

information from
http://www.swlab.ice.uec.ac.jp/announce/srcprint.html