My Emacs

(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
   ["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" "#729fcf" "#eeeeec"])
 '(cua-mode t nil (cua-base))
 '(custom-enabled-themes '(tsdh-dark))
 '(package-selected-packages '(auto-complete company yasnippet))
 '(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 "Courier New" :foundry "outline" :slant normal :weight normal :height 218 :width normal)))))

(set-frame-position (selected-frame) 50 25)
(set-frame-width (selected-frame) 80)
(set-frame-height (selected-frame) 30)



(global-linum-mode t) ;;line num 显示行号
(setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode t)
(setq backward-delete-char-untabify-method nil)
(electric-pair-mode t)
(electric-layout-mode t)
(electric-indent-mode t)
;;electric pair 括号补全
(show-paren-mode t) ;;show paren 括号配对
(global-hl-line-mode t) ;;high light line 高亮当前行
(setq-default cursor-type 'bar);;改变光标


(require 'yasnippet)
(yas-global-mode 1)
(require 'auto-complete-config)
(ac-config-default)
(setq ac-auto-start 4)

叛党了,现在是vim党
又叛变回来了。

posted @ 2020-12-09 22:30  Atoner  阅读(99)  评论(0编辑  收藏  举报