From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?GB2312?B?wu3BwQ==?= Newsgroups: gmane.emacs.help Subject: need help Date: Wed, 14 Apr 2010 15:00:09 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00163630f96dc6dd2b04842cedee X-Trace: dough.gmane.org 1271278405 6328 80.91.229.12 (14 Apr 2010 20:53:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Apr 2010 20:53:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 14 22:53:23 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O29aJ-00021p-5i for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Apr 2010 22:53:19 +0200 Original-Received: from localhost ([127.0.0.1]:51365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O29aI-0007Sx-FW for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Apr 2010 16:53:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O20eT-0004mo-PL for help-gnu-emacs@gnu.org; Wed, 14 Apr 2010 07:21:01 -0400 Original-Received: from [140.186.70.92] (port=52020 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O20eP-0004lJ-Af for help-gnu-emacs@gnu.org; Wed, 14 Apr 2010 07:20:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O20eN-0000ek-Qy for help-gnu-emacs@gnu.org; Wed, 14 Apr 2010 07:20:57 -0400 Original-Received: from mail-yx0-f176.google.com ([209.85.210.176]:36058) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1wa3-0002uY-Pr for help-gnu-emacs@gnu.org; Wed, 14 Apr 2010 03:00:13 -0400 Original-Received: by yxe6 with SMTP id 6so2330142yxe.27 for ; Wed, 14 Apr 2010 00:00:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=Bvp5yMMMGq8PB8TBsFVt9MZi7KSyFxoGKsN58yyWBfc=; b=OjJvsXigeH9S0/x5bEesCW2toROtnWEvAQIzZzavjTj+w8iirYGFUPZX1Nhie0OR3S by5MzkO1wW6Zjo00oNnzv2incdqigHx3BEYRqKLT16N9Hn8wWfZqsKwqOAlj8YHwgOCw M2TtC4q63vc3VWlPFVPuHQLVE6KWbAFGjfkEk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=o621OB5lO0WsaS8Jz7OBRzrCnmUIr9xu8p5EjR0LRvX+cx/MYjorptLmeG8rvfKHPU MQDKPtAdJxEUd3/jGdjdlz/44/MKdF3Dbc0B/RZd0GqmxVR9Grbqf43P49EtXpz54X1A a9sQfSb6b2xz6iGujUdREbXdoFmF4hS/UiAWw= Original-Received: by 10.231.206.209 with HTTP; Wed, 14 Apr 2010 00:00:09 -0700 (PDT) Original-Received: by 10.90.171.4 with SMTP id t4mr775960age.76.1271228409502; Wed, 14 Apr 2010 00:00:09 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Wed, 14 Apr 2010 16:51:02 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72680 Archived-At: --00163630f96dc6dd2b04842cedee Content-Type: text/plain; charset=ISO-8859-1 Dear Emacs Team: My problem is When I input the "C", the emacs show "C-" in the command line, So I can't input the "C", this is too bother me. Please give me a hand. Sorry for my poor English. My .emacs is: (add-to-list 'load-path "~/.emacs.d/rails") (add-to-list 'load-path "~/.emacs.d/yaml-mode") (add-to-list 'load-path "~/.emacs.d/yasnippet") (add-to-list 'load-path "~/.emacs.d/color-theme") (add-to-list 'load-path "~/.emacs.d/auto-complete") (add-to-list 'load-path "~/.emacs.d/git") (add-to-list 'load-path "~/.emacs.d/js") (add-to-list 'load-path "~/.emacs.d/cedet/common") (add-to-list 'load-path "~/.emacs.d/ecb") (add-to-list 'load-path "~/.emacs.d/cedet/eieio") (add-to-list 'load-path "~/.emacs.d/cedet/speedbar") (add-to-list 'load-path "~/.emacs.d/cedet/semantic") (global-linum-mode t) (require 'git-emacs) (require 'git) ;(require 'git-blame) (require 'rails) (setq auto-mode-alist (cons '("\\.rb$" . ruby-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.erb$" . nxml-mode) auto-mode-alist)) (require 'yaml-mode) (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) (add-hook 'yaml-mode-hook '(lambda () (define-key yaml-mode-map "\C-m" 'newline-and-indent))) (add-to-list 'auto-mode-alist '("\\.js\\'" . javascript-mode)) (autoload 'javascript-mode "javascript" nil t) ;;(enabled with `font-lock-mode') ( global-font-lock-mode t) ( display-time ) ( column-number-mode t) (require 'color-theme) (prefer-coding-system 'utf-8) ;;;------------------------------------------------------------;;; ;;; VIEW ;;; No startup message (setq inhibit-startup-message t) ;;; GUI font ;;(set-default-font "Bitstream Vera Sans Mono-12") (set-default-font "Monaco-16") ;;; JP fonts (set-fontset-font (frame-parameter nil 'font) 'japanese-jisx0208 '("M+2VM+IPAG circle" . "unicode-bmp")) ;;; zh-CN fonts (set-fontset-font (frame-parameter nil 'font) 'han '("Microsoft YaHei" . "unicode-bmp")) ;;;;===========================================================;;;; ;;; cjk-misc fonts (set-fontset-font (frame-parameter nil 'font) 'cjk-misc '("Monaco Vera Sans YuanTi Mono" . "unicode-bmp")) ;;; bopomofo fonts (set-fontset-font (frame-parameter nil 'font) 'bopomofo '("Monaco Vera Sans YuanTi Mono" . "unicode-bmp")) ;;; symbol fonts (set-fontset-font (frame-parameter nil 'font) 'symbol '("Monaco Vera Sans YuanTi" . "unicode-bmp")) ;;;;=========================================================;;;; (color-theme-initialize) (color-theme-blackboard) (require 'yasnippet-bundle) (require 'auto-complete) (when (require 'auto-complete nil t) (require 'auto-complete-yasnippet) ;; (require 'auto-complete-ruby) ;; (require 'auto-complete-css) (global-auto-complete-mode t) ;; (set-face-background 'ac-menu-face "lightgray") ;; (set-face-underline 'ac-menu-face "darkgray") ;; (set-face-background 'ac-selection-face "steelblue") (setq ac-auto-start nil) (global-set-key "\M-/" 'ac-start) ;; (define-key ac-complete-mode-map "\t" 'ac-expand) (define-key ac-complete-mode-map "\M-j" 'ac-complete) (define-key ac-complete-mode-map "\M-n" 'ac-next) (define-key ac-complete-mode-map "\M-p" 'ac-previous) ;; (setq ac-auto-start nil) ;; (setq ac-dwim t) (set-default 'ac-sources '(ac-source-yasnippet ac-source-abbrev ac-source-words-in-buffer)) (setq ac-modes (append ac-modes '(eshell-mode ;org-mode ))) ;(add-to-list 'ac-trigger-commands 'org-self-insert-command) (add-hook 'emacs-lisp-mode-hook (lambda () (setq ac-sources '(ac-source-yasnippet ac-source-abbrev ac-source-words-in-buffer ac-source-symbols)))) (add-hook 'eshell-mode-hook (lambda () (setq ac-sources '(ac-source-yasnippet ac-source-abbrev ac-source-files-in-current-dir ac-source-words-in-buffer)))) (add-hook 'ruby-mode-hook (lambda () (setq ac-omni-completion-sources '(("\\.\\=" ac-source-rcodetools)))))) ;;python;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (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) (add-hook 'dired-load-hook (lambda () (load "dired-x") ;; Set dired-x global variables here. For example: ;; (setq dired-guess-shell-gnutar "gtar") ;; (setq dired-x-hands-off-my-keys nil) )) (add-hook 'dired-mode-hook (lambda () ;; Set dired-x buffer-local variables here. For example: ;; (dired-omit-mode 1) )) (put 'upcase-region 'disabled nil) (add-hook 'ruby-mode-hook (lambda() (add-hook 'local-write-file-hooks '(lambda() (save-excursion (untabify (point-min) (point-max)) (delete-trailing-whitespace) ))) (set (make-local-variable 'indent-tabs-mode) 'nil) (set (make-local-variable 'tab-width) 2) (imenu-add-to-menubar "IMENU") (define-key ruby-mode-map "C-m" 'newline-and-indent) (require 'ruby-electric) (ruby-electric-mode t) )) floys 2010-04-14 --00163630f96dc6dd2b04842cedee Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Dear Emacs Team:
=A0=A0 =A0 =A0My problem is When I input the "C&q= uot;, the emacs show "C-" in the command line, So I can't inp= ut the "C", this is too bother me.
Please give me a han= d.
=A0=A0 =A0 =A0Sorry for my poor English.
=A0=A0 =A0 =A0My .e= macs is:
(add-to-list 'load-path "~/.emacs.d/rails&= quot;)
(add-to-list 'load-path "~/.emacs.d/yaml-mode&quo= t;)
(add-to-list 'load-path "~/.emacs.d/yasnippet")
(ad= d-to-list 'load-path "~/.emacs.d/color-theme")
(add= -to-list 'load-path "~/.emacs.d/auto-complete")
(add-to-list 'load-path "~/.emacs.d/git")
(add-to-l= ist 'load-path "~/.emacs.d/js")
(add-to-list 'l= oad-path "~/.emacs.d/cedet/common")
(add-to-list 'l= oad-path "~/.emacs.d/ecb")
(add-to-list 'load-path "~/.emacs.d/cedet/eieio")
<= div>(add-to-list 'load-path "~/.emacs.d/cedet/speedbar")
(add-to-list 'load-path "~/.emacs.d/cedet/semantic")


(global-linum-mode t)
(require= 'git-emacs)
(require 'git)
;(require 'git-= blame)
(require 'rails)
(setq auto-mode-alist =A0(c= ons '("\\.rb$" . ruby-mode) auto-mode-alist))
(setq auto-mode-alist =A0(cons '("\\.erb$" . nxml-mode) = auto-mode-alist))
(require 'yaml-mode)

(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)= )
(add-hook 'yaml-mode-hook
=A0=A0 =A0 =A0 =A0 =A0 '(l= ambda ()
=A0=A0 =A0 =A0 =A0 =A0 =A0 (define-key yaml-mode-map &qu= ot;\C-m" 'newline-and-indent)))
(add-to-list 'auto-m= ode-alist '("\\.js\\'" . javascript-mode))
(autoload 'javascript-mode "javascript" nil t)
;;(enabled with `font-lock-mode')
( global-font-lock-mode t)=
( display-time )
( column-number-mode t)
(require 'color-theme)

(prefer-coding-system &= #39;utf-8)
;;;---------------------------------------------------= ---------;;;
;;; VIEW
;;; No startup message
(setq inhibit-startup-message t)
;;; GUI font
;;(set-de= fault-font "Bitstream Vera Sans Mono-12")
(set-default-= font "Monaco-16")
;;; JP fonts
(set-fontset-f= ont (frame-parameter nil 'font)
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0'japanese-jisx0208
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0'("M+2VM+IPAG circle" = . "unicode-bmp"))
;;; zh-CN fonts
(set-fontse= t-font (frame-parameter nil 'font)
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0'han
=A0=A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0'("Microsoft YaHei" . "unicod= e-bmp"))
;;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D;;;;
;;;= cjk-misc fonts
(set-fontset-font (frame-parameter nil 'font)
=A0=A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0'cjk-misc
=A0=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0'("Monaco Vera Sans YuanTi Mono" . "unico= de-bmp"))
;;; bopomofo fonts
(set-fontset-font (frame-parameter nil 'font)
=A0=A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0'bopomofo
=A0=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0'("Monaco Vera Sans YuanTi Mono" . "unico= de-bmp"))
;;; symbol fonts
(set-fontset-font (frame-parameter nil 'font)
=A0=A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0'symbol
=A0=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0'("Monaco Vera Sans YuanTi" . "unicode-bm= p"))

;;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D;;;;

(color-theme-initialize)
(color-theme-blackbo= ard)
(require 'yasnippet-bundle)
(require 'auto= -complete)
=A0(when (require 'auto-complete nil t)
=A0=A0 (require 'auto-complete-yasnippet)
;; =A0 (require = 9;auto-complete-ruby)
;; =A0 (require 'auto-complete-css)

=A0=A0 (global-auto-complete-mode t)
;; =A0= (set-face-background 'ac-menu-face "lightgray")
;; =A0 (set-face-underline 'ac-menu-face "darkgray")
;; =A0 (set-face-background 'ac-selection-face "steelblue&q= uot;)
=A0=A0 (setq ac-auto-start nil)
=A0=A0 (global-se= t-key "\M-/" 'ac-start)
;; =A0 (define-key ac-complete-mode-map "\t" 'ac-expand)=
=A0=A0 (define-key ac-complete-mode-map "\M-j" 'ac= -complete)
=A0=A0 (define-key ac-complete-mode-map "\M-n&quo= t; 'ac-next)
=A0=A0 (define-key ac-complete-mode-map "\M-p" 'ac-previ= ous)
;; =A0 (setq ac-auto-start nil)
;; =A0 (setq ac-dw= im t)
=A0=A0 (set-default 'ac-sources '(ac-source-yasnipp= et ac-source-abbrev ac-source-words-in-buffer))

=A0=A0 (setq ac-modes
=A0=A0 =A0 =A0 =A0 (app= end ac-modes
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 '(eshell-mode=
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ;org-mode
=A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 )))
=A0=A0 ;(add-to-list '= ;ac-trigger-commands 'org-self-insert-command)

=A0=A0 (add-hook 'emacs-lisp-mode-hook
= =A0=A0 =A0 =A0 =A0 =A0 =A0 (lambda ()
=A0=A0 =A0 =A0 =A0 =A0 =A0 = =A0 (setq ac-sources '(ac-source-yasnippet ac-source-abbrev ac-source-w= ords-in-buffer ac-source-symbols))))

=A0=A0 (add-hook 'eshell-mode-hook
=A0=A0= =A0 =A0 =A0 =A0 =A0 (lambda ()
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 (s= etq ac-sources '(ac-source-yasnippet ac-source-abbrev ac-source-files-i= n-current-dir ac-source-words-in-buffer))))

=A0=A0 (add-hook 'ruby-mode-hook
=A0=A0 = =A0 =A0 =A0 =A0 =A0 (lambda ()
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 (se= tq ac-omni-completion-sources '(("\\.\\=3D" ac-source-rcodeto= ols))))))

;;python;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq au= to-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist= ))
(setq interpreter-mode-alist (cons '("python" . = python-mode)
interpreter-mode-alist))
(autoload 'python-mode "py= thon-mode" "Python editing mode." t)

(add-hook 'dired-load-hook
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 (= lambda ()
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (load "dired-x")
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ;; Set dired-x global variables here. = =A0For example:
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ;; (setq dired= -guess-shell-gnutar "gtar")
=A0=A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 ;; (setq dired-x-hands-off-my-keys nil)
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ))
=A0=A0 =A0 (add-hook &= #39;dired-mode-hook
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 (lambda ()
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ;; Set dired-x buffer-local varia= bles here. =A0For example:
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ;; = (dired-omit-mode 1)
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ))
(put 'upcase-regio= n 'disabled nil)
(add-hook 'ruby-mode-hook
=A0= =A0 =A0 =A0 =A0 =A0(lambda()
=A0=A0 =A0 =A0 =A0 =A0 =A0(add-hook = 'local-write-file-hooks
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0'(lambda()
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (save-excursion
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (untabify (po= int-min) (point-max))
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 (delete-trailing-whitespace)
=A0=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 )))
=A0=A0 =A0 =A0 =A0 =A0 =A0(set (make-local-variable 'indent-tabs-m= ode) 'nil)
=A0=A0 =A0 =A0 =A0 =A0 =A0(set (make-local-variabl= e 'tab-width) 2)
=A0=A0 =A0 =A0 =A0 =A0 =A0(imenu-add-to-menu= bar "IMENU")
=A0=A0 =A0 =A0 =A0 =A0 =A0(define-key ruby= -mode-map "C-m" 'newline-and-indent)
=A0=A0 =A0 =A0 =A0 =A0 =A0(require 'ruby-electric)
=A0= =A0 =A0 =A0 =A0 =A0 =A0(ruby-electric-mode t)
=A0=A0 =A0 =A0 =A0 = =A0 =A0))

=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fl= oys
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A02010-04-14


--00163630f96dc6dd2b04842cedee--