ibus setting in emacs on Ubuntu 10.04

sudo add-apt-repository ppa:irie/elisp
sudo apt-get update
sudo apt-get install ibus-el
;;;; http://www11.atwiki.jp/s-irie/pages/21.html
(require 'ibus)
;; Turn on ibus-mode automatically after loading .emacs
(add-hook 'after-init-hook 'ibus-mode-on)
;; Use C-SPC for Set Mark command
(ibus-define-common-key ?\C-\s nil)
;; Use C-/ for Undo command
(ibus-define-common-key ?\C-/ nil)
;; Change cursor color depending on IBus status
(setq ibus-cursor-color '("red" "blue" "limegreen"))
;; Use C-' to enable IBus
(global-set-key [(control ?')] 'ibus-enable)
;; Use C-; to disable IBus
(global-set-key [(control ?;)] 'ibus-disable)
;; Enable C-; key only for preediting
(ibus-define-common-key [(control ?;)] nil)
(ibus-define-preedit-key [(control ?;)] t)

minimum .emacs.d/init.el

(global-set-key "\C-h" 'backward-delete-char) ;; assign Ctrl-h to backspace
(show-paren-mode t) ;; emphasis ()
(menu-bar-mode nil) ;; hide menu bar
(setq-default transient-mark-mode t) ;; emphasis region
(setq require-final-newline t)
(setq completion-ignore-case t)

How to profile tomcat in Eclipse

How to install WTP in Eclipse for tomcat

  • purpose
    • create webapp project
    • start/stop tomcat
    • debug servlet and jsp in webapp project
  • install
  • server setting
    • Menu: File > New > Other > Server > Server
  • create webapp project
    • Menu: File > New > Project > Web > Dynamic Web Project
  • create Servlet Class
    • set Web perspective
    • right click project > New > Servlet