C/C++教程

Emacs 配置

本文主要是介绍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)))))
这篇关于Emacs 配置的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!