标签:back show too format 生成 acs play frame screen
前面字体设的是 Ubuntu Mono,没有的可以去Ubuntu里拷一份,字体放大了点。剩下的是一些基本的操作,可按需取用。
开启自动全屏仅适用于Windows系统。
下面是代码。
1 (custom-set-variables 2 ;; custom-set-variables was added by Custom. 3 ;; If you edit it by hand, you could mess it up, so be careful. 4 ;; Your init file should contain only one such instance. 5 ;; If there is more than one, they won‘t work right. 6 ‘(display-time-mode t) 7 ; ‘(show-paren-mode t) 8 ‘(tool-bar-mode nil)) 9 (custom-set-faces 10 ;; custom-set-faces was added by Custom. 11 ;; If you edit it by hand, you could mess it up, so be careful. 12 ;; Your init file should contain only one such instance. 13 ;; If there is more than one, they won‘t work right. 14 ‘(default ((t (:family "Ubuntu Mono" :foundry "outline" :slant normal :weight normal :height 181 :width normal))))) 15 16 ;; 不显示工具栏 17 (tool-bar-mode 0) 18 19 ;; 不显示菜单栏 20 (menu-bar-mode 0) 21 22 ;光标改为竖线 23 (setq-default cursor-type ‘bar) 24 25 ;; 高亮匹配括号。 26 (show-paren-mode t) 27 (setq show-paren-style ‘parenthesis) 28 29 ;; 撤销记录扩大。 30 (setq-default kill-ring-max 65535) 31 32 ;透明效果 33 (set-frame-parameter (selected-frame) ‘alpha (list 85 50)) 34 (add-to-list ‘default-frame-alist (cons ‘alpha (list 85 50))) 35 36 ;一键Eshell 37 (global-set-key (kbd "C-e") ‘eshell) 38 39 ;设置背景色 40 (add-to-list ‘default-frame-alist ‘(foreground-color . "#E0DFDB")) 41 (add-to-list ‘default-frame-alist ‘(background-color . "#000000")) 42 43 ;取消欢迎屏幕 44 (setq inhibit-splash-screen t) 45 46 ;窗口最大化(仅在Windows 中有效) 47 (run-with-idle-timer 0 nil ‘w32-send-sys-command 61488) 48 49 ;设置标题栏,我的设置为前面显示文档名,后面显示“ - Emacs” 50 ;放久了会还原,选中窗口即可,属正常现象 51 (setq frame-title-format ‘("%b - Emacs")) 52 53 54 ; 启用时间显示设置,在minibuffer上面的那个杠上 55 (display-time-mode t) 56 57 ;显示行号 58 (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)
附:
Windows 7及以上的系统配置文件放在C:\Users\(当前用户名)\AppData\Roaming\目录下,为一个.emacs文件。
Emacs 刚安装好的时候没有这个文件,又因为Windows 不能生成没有文件名的文件(.emacs的emacs是扩展名),所以可以通过先点Options->Set Default Fonts...->随便更改->Options->Save Options来生成.emacs文件。
Linux直接放主目录下,记得把显示隐藏文件打开。
标签:back show too format 生成 acs play frame screen
原文地址:https://www.cnblogs.com/g-mph/p/14488673.html