荔园在线
荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀
[回到开始]
[上一篇][下一篇]
发信人: jjksam (Debian GNU/Linux 2.2 (`potato') ), 信区: Linux
标 题: [转载] Re: emacs下的中文怎么是躺着的?(转寄)
发信站: 荔园晨风BBS站 (Sat Jan 12 23:35:29 2002), 转信
【 以下文字转载自 jjksam 的信箱 】
【 原文由 jjksam@smth.org 所发表 】
发信人: cybergene (基因~也许以后~~), 信区: Linux
标 题: Re: emacs下的中文怎么是躺着的?
发信站: BBS 水木清华站 (Fri Jan 11 12:30:34 2002)
【 在 lostxu (FinalFantasy) 的大作中提到: 】
: 怎样设置才能正过来.另外中文输入是乱码,是什么原因?
: 谢谢!
下面这个设置对于windows2k/xp的中文环境下的gnu-emacs21.1.1使用
肯定没问题,包括输入和显示汉字。
有些行超过了80字符,所以最好forward到你的email里面打开copy&paste
;;dot-emacs of cybergene's gnu-emacs on win32
;;last update: 2002-01-10
;;cybergene <cybergene@263.net>
;;
(set-w32-system-coding-system 'chinese-iso-8bit)
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(c-basic-offset 8)
'(c-default-style (quote ((c-mode . "k&r") (java-mode . "java") (other . "gnu")
)))
'(calculator-number-digits 13)
'(case-fold-search t)
'(current-language-environment "Chinese-GB")
'(default-input-method "chinese-py-punct")
'(font-lock-auto-fontify t)
'(font-lock-mode nil t (font-lock))
'(global-font-lock-mode t nil (font-lock))
'(paren-mode (quote sexp) nil (paren))
'(show-paren-mode t nil (paren))
'(standard-indent 6)
'(tool-bar-mode nil nil (tool-bar))
'(uniquify-buffer-name-style nil nil (uniquify)))
(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
)
(setq default-frame-alist
'(
(foreground-color . "Wheat")
(background-color . "DarkSlateGray")
(cursor-color . "Orchid")
)
)
;;(setq display-time-24hr-format t)
;;(setq display-time-day-and-date t)
;;(display-time)
(set-default 'case-fold-search t)
;;
;; Below is for syntax highlighting
(cond ((fboundp 'global-font-lock-mode)
;; Turn on font-lock in all modes that support it
(global-font-lock-mode t)
;; Maximum colors
(setq font-lock-maximum-decoration t)))
;;
;; Below is for python-mode
;(setq auto-mode-alist
; (cons '("\\.py$" . python-mode) auto-mode-alist))
;(setq interpreter-mode-alist
; (cons '("python" . python-mode) interpreter-mode-alist))
;(autoload 'python-mode "python-mode" "Python editing mode." t)
;;
(defun my-c-mode-common-hook ()
;; other customizations
(setq tab-width 8
;; this will make sure spaces are used instead of tabs
indent-tabs-mode nil)
;; we like auto-newline and hungry-delete
(c-toggle-auto-hungry-state 1)
;; keybindings for all supported languages. We can put these in
;; c-mode-base-map because c-mode-map, c++-mode-map, objc-mode-map,
;; java-mode-map, idl-mode-map, and pike-mode-map inherit from it.
(define-key c-mode-base-map "\C-m" 'c-context-line-break)
)
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
;;for chinese input under win2k/xp
;;configuration
(create-fontset-from-fontset-spec
"-*-Courier New-normal-r-*-*-12-*-*-*-c-*-fontset-most,
chinese-gb2312:-*-宋体-normal-r-*-*-12-*-*-*-c-*-gb2312-*" t)
(setq default-frame-alist
(append
'((font . "-*-Courier
New-normal-r-*-*-12-*-*-*-c-*-fontset-most"))
default-frame-alist))
(set-keyboard-coding-system 'chinese-iso-8bit)
(set-selection-coding-system 'chinese-iso-8bit)
;;end of chinese input configuration
--
WHEN YOU ARE NOT TRAINING,
SOMEONE ELSE IS TRAINING...
TO KICK YOUR ASS!!
※ 来源:·BBS 水木清华站 smth.org·[FROM: 211.101.216.10]
--
※ 转载:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 192.168.0.146]
[回到开始]
[上一篇][下一篇]
荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店