我的emacs设置

(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 "DejaVu Sans Mono" :foundry "unknown" :slant normal :weight bold :height 143 :width normal))))
'(company-echo-common ((t (:foreground "dark slate gray"))))
'(company-preview ((t (:background "RoyalBlue4" :foreground "light goldenrod"))))
'(company-preview-common ((t (:inherit company-preview :foreground "light blue"))))
'(company-scrollbar-bg ((t (:background "navy"))))
'(company-scrollbar-fg ((t (:background "cadet blue"))))
'(company-template-field ((t (:background "dark slate gray" :foreground "light goldenrod"))))
'(company-tooltip ((t (:background "dark slate gray" :foreground "light goldenrod"))))
'(company-tooltip-annotation ((t (:foreground "sky blue"))))
'(company-tooltip-common ((t (:foreground "SlateGray1"))))
'(company-tooltip-selection ((t (:background "SlateGray4"))))
'(cursor ((t nil)))
'(org-indent ((t nil)) t))

(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.
'(c-default-style
(quote
((java-mode . "java")
(awk-mode . "awk")
(c-mode . "google")
(other . "linux"))))
'(comment-multi-line nil)
'(company-auto-complete-chars (quote (32 95 41 119 46 34 36 39 60 62 47 124 33)))
'(company-backends
(quote
(company-bbdb company-nxml company-css company-eclim company-semantic company-clang company-xcode company-cmake company-capf company-files
(company-dabbrev-code company-gtags company-etags company-keywords)
company-oddmuse company-dabbrev)))
'(company-idle-delay t)
'(cursor-type (quote bar))
'(default
((t
(:family "Linux Libertine O" :foundry "unknown" :slant italic :weight bold :height 128 :width normal))))
'(display-time-mode t)
'(ecb-compile-window-height 5)
'(ecb-compile-window-temporally-enlarge (quote both))
'(ecb-compile-window-width (quote edit-window))
'(ecb-eshell-auto-activate 1)
'(ecb-layout-name "left-analyse")
'(ecb-options-version "2.50")
'(ecb-primary-secondary-mouse-buttons (quote mouse-1--mouse-2))
'(ecb-windows-height 0.33)
'(ecb-windows-width 0.23)
'(ede-project-directories
(quote
("/home/jimmy221b/jimmy/code/cprimer/chapter3" "/home/jimmy221b/cprimer")))
'(elpy-rpc-python-command "python3")
'(gdb-many-windows t)
'(global-company-mode t)
'(helm-split-window-default-side (quote right))
'(helm-split-window-inside-p t)
'(helm-window-prefer-horizontal-split t)
'(indent-tabs-mode t)
'(menu-bar-mode nil)
'(org-indent-mode-turns-off-org-adapt-indentation t)
'(org-indent-mode-turns-on-hiding-stars t)
'(org-log-done (quote time))
'(split-height-threshold 160)
'(split-width-threshold 0)
'(split-window-preferred-function (quote split-window-sensibly))
'(tab-width 4)
'(tool-bar-mode nil))


;; 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.


(require 'package)
(setq package-archives
'(("gnu" . "http://elpa.gnu.org/packages/")
("gnu" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")
("melpa" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/")
("melpa" . "http://melpa.milkbox.net/packages/")))
(package-initialize)

(require 'package)
(add-to-list 'package-archives
'("elpy" . "http://jorgenschaefer.github.io/packages/"))

;;不产生备份文件
;;(setq make-backup-file 0 )

;;(require 'pyvenv)
;;主题设定
;;(elpy-enable)
(load-theme 'tsdh-dark t)
;;(load-theme 'wheatgrass t)
(global-linum-mode)
;;(require 'color-theme)
;;(color-theme-initialize)
;;(setq color-theme-is-global t)
;;(color-theme-robin-hood)
;;(color-theme-gnome2)
;;(color-theme-classic)
;;(color-theme-subtle-hacker)

;;自动补全
(add-hook 'after-init-hook 'global-company-mode)

(require 'yasnippet)
(yas-global-mode 1)

;;ecb配置
;;==============================================================
;;(require 'ecb)
;;开启ecb用,M-x:ecb-activate
;;(require 'ecb-autoloads)
;;自动启动ecb并且不显示每日提示
;;(require 'ecb)
;;(setq ecb-auto-activate t)
;;(setq ecb-tip-of-the-day nil)

(require 'semantic)
(require 'cedet)
(global-ede-mode 1)
(semantic-mode 1)

(setq semantic-default-submodes '(global-semantic-idle-scheduler-mode
global-semanticdb-minor-mode
global-semantic-idle-summary-mode
global-semantic-mru-bookmark-mode
global-semantic-idle-completions-mode
global-semantic-stickyfunc-mode
global-semantic-highlight-func-mode))
(setq company-idle-delay t)

(require 'srecode)
(global-srecode-minor-mode 1)

;;(require 'cc-mode)
;; 自动清楚用户输入的括号 用于 C编程的括号对齐
(electric-pair-mode 1)
;;(require 'flycheck)
;;(flycheck-mode 1)
(add-hook 'after-init-hook 'global-flycheck-mode)

 

;;(require 'helm)
;;(require 'helm-config)
;;(helm-mode 1)


(add-hook 'c-mode-common-hook 'google-set-c-style )
(add-hook 'c-mode-common-hook 'google-make-newline-indent )

 

(display-time-mode 1)

(require 'remember)

(add-hook 'org-mode-hook 'org-indent-mode )

 

转载于:https://www.cnblogs.com/jimmy221b/p/8186160.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值