;; c/c++ header include guard (defun insert-include-guard () "insert include guard for c and c++ header file.
for file filename.ext will generate:
#ifndef FILENAME_EXT_
#define FILENAME_EXT_
(defun go-to-other-window-and-close-this-one()
"Go to other window and close current window"
(interactive)
(other-window 1)
(delete-other-windows))
(global-set-key (kbd "C-c k") 'go-to-other-window-and-close-this-one)
(defun copy-current-buffer() "Copy crerent buffer to kill ring : by Chen Yukang" (interactive) (setq position (point)) (kill-ring-save (point-min)(point-max)) (goto-char position)) (global-set-key (kbd "C-c C-v")'copy-current-buffer)
; w3m
(autoload 'w3m "w3m" "interface for w3m on emacs" t)
(setq w3m-command-arguments '("-cookie" "-F"))
(setq w3m-use-cookies t)
(setq w3m-home-page "http://www.google.com.cn")
(setq w3m-default-display-inline-image t)
(setq w3m-default-toggle-inline-images t)
(setq w3m-use-form t)
(setq w3m-tab-width 8)
(setq w3m-use-cookies t)
(setq w3m-use-toolbar t)
(setq w3m-use-mule-ucs t)
(setq w3m-fill-column 120)
(setq w3m-default-display-inline-image t)
(setq w3m-default-toggle-inline-images t)
(setq w3m-display-inline-image t)
(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.
'(ecb-layout-window-sizes nil)
'(ecb-options-version "2.32