我的TAB键是4个空格,我想用一个制表符代替,不想要空格。怎么办啊?
这是我的配置文件。 .eamcs
#####################################
(setq-default transient-mark-mode t)
(setq visible-bell t)
(setq vc-initial-comment t)
(setq visible-bell t)
(setq-default indent-tabs-mode t)
(setq-default nuke-trailing-whitespace-p t)
(global-unset-key "\e\e")
(global-unset-key "\C-x\C-u")
(define-key global-map (quote [home]) 'beginning-of-line)
(define-key global-map (quote [end]) 'end-of-line)
(define-key global-map (quote [prior]) 'scroll-down)
(define-key global-map (quote [next]) 'scroll-up)
(global-set-key (quote [insertchar]) (quote overwrite-mode))
(global-set-key (quote [kp-f2]) (quote tags-search))
(global-set-key (quote [kp-f3]) (quote tags-query-replace))
(global-set-key (quote [kp-f4]) (quote tags-loop-continue))
(global-set-key (quote [kp-f5]) (quote compile))
(global-set-key (quote [kp-f6]) (quote other-window))
(global-set-key (quote [f2]) (quote tags-search))
(global-set-key (quote [f3]) (quote tags-query-replace))
(global-set-key (quote [f4]) (quote tags-loop-continue))
(global-set-key (quote [f5]) (quote compile))
(global-set-key (quote [f6]) (quote other-window))
(display-time)
(setq viper-mode t)
(require 'viper)
(add-hook 'c-mode-hook
#'(lambda () (c-set-style "stroustrup")))
(add-hook 'cc-mode-hook
#'(lambda () (c-set-style "stroustrup")))
(add-hook 'c++-mode-hook
#'(lambda () (c-set-style "stroustrup")))
(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.
'(case-fold-search t)
'(current-language-environment "Chinese-BIG5")
'(default-input-method "chinese-py-punct-b5")
'(global-font-lock-mode t nil (font-lock))
'(transient-mark-mode t))
(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.
)
求助,关于我的emacs设置
Vim、Emacs配置和使用
前往
- 公告/注意事项
- ↳ 新闻和通知
- ↳ 软件推荐
- 系统安装
- ↳ 教学和常见问答
- ↳ 系统安装和升级
- ↳ 启动和引导
- ↳ 网卡无线拨号
- ↳ 硬件与内核
- ↳ 笔记本及便携设备
- ↳ Ubuntu衍生版
- ↳ 其他类Unix OS发行版
- ↳ Debian发行版
- 配置美化
- ↳ 中文显示和输入法
- ↳ 个人配置文件存放点
- ↳ 软件文档翻译
- ↳ 窗口管理器及美化
- ↳ 桌面展示
- 软件使用
- ↳ 办公、图像、机械电子设计等
- ↳ Vim和Emacs
- ↳ 开源模板库
- ↳ 互联网相关软件
- ↳ 影音多媒体
- ↳ 游戏和模拟器
- ↳ 虚拟机和虚拟化
- ↳ Wine及其分支
- ↳ 其它类软件
- 服务器管理
- ↳ 服务器运维
- ↳ 云计算和容器(K8S/KVM/Docker/WSL等)
- ↳ Ubuntu VPS
- 程序设计与开发
- ↳ Shell脚本
- ↳ 软件/网站开发
- ↳ 内核及嵌入式开发
- ↳ Ubuntu编译和打包
- ↳ 开源小工具
- ↳ 挑战任务
- 感想与交流
- ↳ 深度PK版
- ↳ Ubuntu故事和感慨
- ↳ 同城交流
- ↳ 校园社团
- ↳ 港澳台校区
- ↳ 国外校区
- 站务区
- ↳ 论坛管理
- ↳ Ubuntu中文网上商店