emacs configuration for Linux


;; 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)

;; turn on font-lock mode
(global-font-lock-mode t)
;; enable visual feedback on selections
(setq-default transient-mark-mode t)

;; 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)

(when window-system
  ;; enable wheelmouse support by default
  (mwheel-install)
  ;; use extended compound-text coding for X clipboard
  (set-selection-coding-system 'compound-text-with-extensions))

(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.
 '(case-fold-search t)
 '(cua-mode nil)
;; '(current-language-environment "Chinese-GB")
 '(default-input-method "chinese-py-punct")
 '(font-lock-maximum-size 256000)
 '(global-font-lock-mode t nil (font-lock))
 '(gnuserv-program "/usr/lib/xemacs-21.0/i386-pc-linux/gnuserv")
 '(show-paren-mode t nil (paren))
 '(transient-mark-mode t))
 
(custom-set-faces
  ;; custom-set-faces 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.
 )

(tool-bar-mode nil)
;;(setq  default-major-mode 'emacs-mule)
;;(set-background-color "gray35")
(set-background-color "darkslategray")
;;(set-foreground-color "white")
(set-foreground-color "wheat")
(set-cursor-color "orchid")
(setq make-backup-files nil)
;;(set-language-environment 'Chinese-GB)
;;(set-keyboard-coding-system 'gb2312)
;;(set-clipboard-coding-system 'gb2312)
;;(set-terminal-coding-system 'gb2312)
;;(set-buffer-file-coding-system 'gb2312)
;;(set-selection-coding-system 'gb2312)
;;(modify-coding-system-alist 'process "*" 'gb2312)
;;(setq default-process-coding-system '(gb2312 . gb2312))
;;(setq-default pathname-coding-system 'gb2312)
;;(setq-default enable-multibyte-characters t)
(setq-default enable-multibyte-characters t)

;;(setq locale-coding-system 'gb2312)

(setq inhibit-startup-message t)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值