Emacs 配置
作者:互联网
;;生活必需品
(setq-default cursor-type 'bar) ;;竖线光标
(setq c-basic-offset 4)
(setq default-tab-width 4) ;;设置缩进及tab键
(global-linum-mode t) ;;显示行号
(global-hl-line-mode t) ;;高亮当前行
(global-set-key [f9] 'compile) ;;快捷编译
(global-set-key [f10] 'shell) ;;快捷shell
;;生活次需品
(setq default-directory "~/codes/") ;;设置默认目录
(setq inhibit-splash-screen t) ;;关闭欢迎界面
(setq ring-bell-function 'ignore) ;;关闭提示音
(set-frame-parameter (selected-frame) 'alpha (list 75 75))
(add-to-list 'default-frame-alist (cons 'alpha (list 75 75))) ;;透明窗口
(tool-bar-mode -1) ;;不显示工具栏
(column-number-mode 1) ;;显示光标行列
;;生活自带品
(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.
'(ansi-color-faces-vector
[default default default italic underline success warning error])
'(ansi-color-names-vector
["black" "#d55e00" "#009e73" "#f8ec59" "#0072b2" "#cc79a7" "#56b4e9" "white"])
'(custom-enabled-themes (quote (deeper-blue)))
'(show-paren-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.
'(default ((t (:family "Ubuntu Mono" :foundry "DAMA" :slant normal :weight normal :height 203 :width normal)))))
标签:set,default,配置,custom,global,Emacs,setq,mode 来源: https://www.cnblogs.com/mfuqwq/p/15426755.html