QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1336|回复: 1

emacs删除一行是什么快捷键以及支持中文问题?

[复制链接]
发表于 2006-2-22 12:56:56 | 显示全部楼层 |阅读模式
1. emacs删除一行是什么快捷键
2. 我的.emacs无论怎么配置,都无法显示中文,请问如何解决显示和输入中文问题,谢谢!

;;; -*- coding: utf-8-unix -*-
;; Are we running XEmacs or Emacs?
(defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
;; Set up the keyboard so the delete key on both the regular keyboard
;; and the keypad delete the character under the cursor and to the right
;; under X, instead of the default, backspace behavior.
(global-set-key [delete] 'delete-char)
(global-set-key [kp-delete] 'delete-char)

(cond ((not running-xemacs)
(set-foreground-color "Navy")
(set-background-color "Grey")
(set-cursor-color "black")
;; (set-default-font "-*-Fixedsys-*-*-*-*-*-*-*-*-*-*-fontset-default")
;; (set-default-font "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*")
(prefer-coding-system 'cn-gb-2312)
(set-language-environment 'utf-
(set-terminal-coding-system 'utf-
(set-keyboard-coding-system 'utf-
(set-selection-coding-system 'utf-
))
(cond (running-xemacs
))
;; Always end a file with a newline
(setq require-final-newline t)
;; Stop at the end of the file, not just add lines
(setq next-line-add-newlines nil)
(global-set-key (quote [f4]) (quote set-mark-command))
(global-set-key (quote [f3]) (quote goto-line))
(defun my-c-mode-common-hook ()
;; add my personal style and set it for the current buffer
(c-set-style "k&r")
;; offset customizations not in my-c-style
(c-set-offset 'member-init-intro '++)
;; other customizations
(setq default-tab-width 2
;; 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)
(font-lock-mode 2)
;; 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, and idl-mode-map inherit from it.
(define-key c-mode-base-map "\C-m" 'newline-and-indent)
)
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
发表于 2006-2-22 13:31:15 | 显示全部楼层
http://www.linuxsky.net/html/200602/2181.html
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-27 20:29 , Processed in 0.069890 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表