我的 Emacs 配置文件

前面字体设的是 Ubuntu Mono,没有的可以去Ubuntu里拷一份,字体放大了点。剩下的是一些基本的操作,可按需取用。

开启自动全屏仅适用于Windows系统。

(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.
 '(display-time-mode t)
; '(show-paren-mode t)
 '(tool-bar-mode nil))
(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.
 '(default ((t (:family "Ubuntu Mono" :foundry "outline" :slant normal :weight normal :height 181 :width normal)))))

;; 不显示工具栏
(tool-bar-mode 0)

;; 不显示菜单栏
(menu-bar-mode 0)

;光标改为竖线
(setq-default cursor-type 'bar)

;; 高亮匹配括号。
(show-paren-mode t)
(setq show-paren-style 'parenthesis)

;; 撤销记录扩大。
(setq-default kill-ring-max 65535)

;透明效果
(set-frame-parameter (selected-frame) 'alpha (list 85 50))
(add-to-list 'default-frame-alist (cons 'alpha (list 85 50)))

;一键Eshell
(global-set-key (kbd "C-e") 'eshell)

;设置背景色
(add-to-list 'default-frame-alist '(foreground-color . "#E0DFDB"))
(add-to-list 'default-frame-alist '(background-color . "#000000"))

;取消欢迎屏幕
(setq inhibit-splash-screen t)

;窗口最大化(仅在Windows 中有效)
(run-with-idle-timer 0 nil 'w32-send-sys-command 61488)

;设置标题栏,我的设置为前面显示文档名,后面显示“ - Emacs” 
;放久了会还原,选中窗口即可,属正常现象
(setq frame-title-format '("%b - Emacs"))


; 启用时间显示设置,在minibuffer上面的那个杠上 
(display-time-mode t) 

;显示行号
(global-linum-mode t)

考试的时候可以直接背下面这段:

(tool-bar-mode 0)
(menu-bar-mode 0)
(setq-default cursor-type 'bar)
(show-paren-mode t)
(setq show-paren-style 'parenthesis)
(setq-default kill-ring-max 65535)
(set-frame-parameter (selected-frame) 'alpha (list 85 50))
(add-to-list 'default-frame-alist (cons 'alpha (list 85 50)))
(global-set-key (kbd "C-e") 'eshell)
(add-to-list 'default-frame-alist '(foreground-color . "#E0DFDB"))
(add-to-list 'default-frame-alist '(background-color . "#000000"))
(setq inhibit-splash-screen t)
(setq frame-title-format '("%b - Emacs"))
(display-time-mode t) 
(global-linum-mode t)
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值